You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fatal: error thrown and no exception handler available.
ErrorException("invalid redefinition of constant foo")
ijl_errorf at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-10/src/rtutils.c:77
ijl_set_const at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-10/src/module.c:798 [inlined]
ijl_set_const at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-10/src/module.c:792
main at ./test (unknown line)
unknown function (ip: 0x7163d522a1c9)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at ./test (unknown line)
The code can be compiled as in the embedding docs: gcc -o test -fPIC -I$JULIA_DIR/include/julia -L$JULIA_DIR/lib -Wl,-rpath,$JULIA_DIR/lib test.c -ljulia
This part of the code is in flux and constant re-definition (via binding partition) will be allowed in 1.12. The current state of the code is mostly the new code with extra error checks to make Julia behave as it did before.
The following code succeeds on nightly:
Previously this caused an error:
Tested on Linux with commit ff0a1be
The text was updated successfully, but these errors were encountered: