Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from Matlab #89

Open
bardo84 opened this issue Jul 25, 2021 · 0 comments
Open

Building from Matlab #89

bardo84 opened this issue Jul 25, 2021 · 0 comments

Comments

@bardo84
Copy link

bardo84 commented Jul 25, 2021

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".
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant