JuliaInterop / libcxxwrap-julia

C++ library for backing CxxWrap.jl
Other
84 stars 43 forks source link

Building from Matlab #89

Open bardo84 opened 3 years ago

bardo84 commented 3 years ago

Hi, according to Publish Interface to Shared C++ Library on Windows I set up a build script: ` function create_definition

productPath = 'C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx'; libPath = 'C:\Users\xxx\AppData\Local\Programs\Julia-1.6.2\bin'; % Header file name hppFile = 'jlcxx.hpp'; % Full path to folder containing all header files hppPath = productPath; % Full path to folder containing include files iPath = 'C:\Users\xxx\AppData\Local\Programs\Julia-1.6.2\include\julia'; % Library file name libFile = 'libjulia.dll.a';

v = true; clibgen.generateLibraryDefinition(fullfile(hppPath,hppFile),... 'IncludePath', iPath,... 'Libraries', fullfile(libPath,libFile),... 'ReturnCArrays',false,... 'Verbose',v) `

Then I get the follwing errors: `

create_definition Error using create_definition (line 15) Errors parsing header file. C:\Users\xxx\AppData\Local\Programs\Julia-1.6.2\include\julia\julia.h:142: argument of type "jl_value_t " is incompatible with parameter of type "unsigned long". C:\Users\xxx\AppData\Local\Programs\Julia-1.6.2\include\julia\julia.h:933: argument of type "jl_value_t " is incompatible with parameter of type "unsigned long". C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\type_conversion.hpp:205: namespace "std" has no member class "bool_constant". C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\type_conversion.hpp:205: not a class or struct name. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\type_conversion.hpp:205: class or struct definition is missing. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\type_conversion.hpp:836: "auto" function requires a trailing return type. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\type_conversion.hpp:842: "auto" function requires a trailing return type. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:376: "has_type" is not a function or static data member. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:376: "constexpr" is not valid here. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:379: has_type is not a template. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:379: "constexpr" is not valid here. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:382: has_type is not a template. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:382: "constexpr" is not valid here. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:385: has_type is not a template. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:385: "constexpr" is not valid here. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:419: identifier "has_type" is undefined. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:419: type name is not allowed. C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:419: too few arguments for class template "jlcxx::detail::ConditionalAppend". C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:419: expected a ";". C:\Users\xxx\Downloads\libcxxwrap-julia-master\include\jlcxx\module.hpp:494: namespace "std" has no member class "bool_constant". `