HI I am trying to create binary for the jl package… by wrapping in a c code, and loading a custom sysimage…
using
gcc -DJULIAC_PROGRAM_LIBNAME="taxpayer.so" -D_WIN32 -o MyApp MyApp.c taxpayer.so -O2 -fPIE -I"E:/Programs/Julia-1.9.2/include/julia" -L"E:/Programs/Julia-1.9.2/lib" -ljulia -Wl,-rpath,“E:/Programs/Julia-1.9.2/lib:E:/Programs/Julia-1.9.2/share/julia/stdlib/v1.9:%CD%”
I get these errors
/usr/lib/gcc/x86_64-pc-cygwin/11/…/…/…/…/x86_64-pc-cygwin/bin/ld: /tmp/cc6488EA.o:MyApp.c:(.text.startup+0x23): undefined reference to uv_setup_args' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /tmp/cc6488EA.o:MyApp.c:(.text.startup+0x29): undefined reference to
__imp_libsupport_init’
/usr/lib/gcc/x86_64-pc-cygwin/11/…/…/…/…/x86_64-pc-cygwin/bin/ld: /tmp/cc6488EA.o:MyApp.c:(.text.startup+0x3f): undefined reference to `__imp_julia_init’
collect2: error: ld returned 1 exit status
any help is appritiated.
Thanks and Regards