-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Linking error related to libm
when using Nim
#339
Comments
Hi @ajusa, When porting Lua (#61) I saw a similar error, I skipped linking libm because it relied on some symbols from the system libc. The math functions in Do you get the same linker error(s) if you skip linking with |
You might find it useful to look at the Makefile I used to build Lua. |
Awesome, thank you for the guidance. As it turns out, Nim is automatically appending Next, I got an error relating to Do you know a good alternative to |
If Create // ctermid.c
char* ctermid(char *s)
{
static char buf[] = "/dev/tty";
return buf;
} Reference: the man page of |
Thanks! I've got it working and compiling nicely now, I'll probably upstream my efforts to https://github.com/Yardanico/cosmonim. |
Hello!
I've been trying to get some more complex projects to build, written in the Nim programming language. Nim outputs C code, so this should be feasible. I started working off of https://github.com/Yardanico/cosmonim which has some sane defaults and patches for the standard library. I've also gone ahead and made additional patches for the standard library, so I'm finally at a point where I'm getting linking errors rather than compiling errors.
I've tried looking at some of the third party programs that folks have gotten working under cosmopolitan, but wasn't able to glean any information about this issue. I'm not super familiar or experienced with the linking side of things, so I'd appreciate any help!
The text was updated successfully, but these errors were encountered: