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
{{ message }}
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
So I should expect to accept ARGS and pass it through to use with say ArgParse.jl.
However, when I look at program.c:
intmain(intargc, char*argv[])
{
intptr_tv;
// Initialize Juliauv_setup_args(argc, argv); // no-op on Windowslibsupport_init();
jl_options.image_file="libhello";
julia_init(JL_IMAGE_CWD);
// Do some workjulia_main();
// Cleanup and graceful exitjl_atexit_hook(0);
return0;
}
Nothing is passed to julia_main when it is invoked - perhaps why I'm getting segfault!? So does the call of julia_main() need to be altered to accept some arguments? If so, how?
The text was updated successfully, but these errors were encountered:
I've just had a look in procram2.c and have seen that it converts UTF16 to UTF8 and builds an array of strings, for passing into julia_main, is this ok to simply copy into program.c (including the conditional windows dependent bit)?
(I know program2 is supposed to do somethings differently to program one regarding including a binary rather than loading a dl (although I can't see where). So I'm hesitant to just blindly copy anything in program2.c.)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I've just tried to make a binary which accepts command line arguments and I get segfaults which has led me to notice:
In hello.jl:
So I should expect to accept ARGS and pass it through to use with say ArgParse.jl.
However, when I look at program.c:
Nothing is passed to julia_main when it is invoked - perhaps why I'm getting segfault!? So does the call of julia_main() need to be altered to accept some arguments? If so, how?
The text was updated successfully, but these errors were encountered: