Skip to content
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

error compiling with mingw #42

Closed
clintr-at-kornak opened this issue Mar 28, 2019 · 5 comments
Closed

error compiling with mingw #42

clintr-at-kornak opened this issue Mar 28, 2019 · 5 comments

Comments

@clintr-at-kornak
Copy link

Hello, I've been trying to compile with mingw (gcc version is 4.8.1) on Windows 7 64-bit.
"make lib" works, but for "make all" I get the error "undefined reference to `SystemFunction036@8'". I get the same error if I try to compile libhydrogen.a into a program of my own.
Can you tell me how to correct this?
Thanks

@clintr-at-kornak
Copy link
Author

I've just tried updating to latest mingw (gcc version 8.2.0). Problems are the same. (I also had to put a blank line at the start of the makefile or make complained "make: cc: Command not found" - see https://stackoverflow.com/questions/36232323/mingw-make-cc-command-not-found).

@jedisct1
Copy link
Owner

You should set the environment variable CC to the C compiler you want to use.

For example:

CC=x86_64-w64-mingw32-gcc

@clintr-at-kornak
Copy link
Author

Hello, thank you for the solution to the mingw make error. However, it does not solve my original problem, which is that I get the error "undefined reference to `SystemFunction036@8'".

@jedisct1
Copy link
Owner

Have you tried with msys2?

@clintr-at-kornak
Copy link
Author

Yes that worked. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants