-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
ccall fails from embedding Julia into C #17451
Comments
|
It works! Many thanks! |
Should that be added (sometimes?) to |
The option only makes sense for executables and not for shared objects (not sure if any linker gives warning or error for that though) so it shouldn't be added to |
This option is also not really necessary to make julia function correctly, only when a symbol in the main executable is looked up dynamically so it feels a little strange to require it. I do agree we should document this since many people might want to do this and hence the doc label. |
this also looks like exactly the same question as https://groups.google.com/forum/#!topic/julia-users/rj8i4r6id9M |
Ha, I thought that was an issue which is why I couldn't find it just now ..... |
* Include threading flags. Fix JuliaLang#16868 * Add document about exporting symbols from main executable. Fix JuliaLang#17451
Hi!
I'm trying to run following example of embedding Julia into C.
And I got following error.
The OS is CentOS Linux 7.1, compiler is gcc 4.8.5.
julia version 0.4.6 is installed from nalimilan/julia repository.
I'm building example using following command.
/usr/share/julia/julia-config.jl --cflags --ldflags --ldlibs | xargs clang embed.c -o embed
The same example works fine for me on Mac OS X 10.10.5.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: