3 ms·
Undefined symbols for architecture i386 I get this error when attempting to make on macOS. I don't have very much experience with C, but is there a good resou
by andyfleming 7y ago
Undefined symbols for architecture i386
I get this error when attempting to make on macOS.
I don't have very much experience with C, but is there a good resource to learn how to better deal with compiler issues and such other than googling specific issues?
- pjscott 7y agoYeah, I got the same error, along with a bunch of warnings earlier in the build about how 32-bit builds are deprecated on recent macOS versions. And then when it goes to link, it can't find the 32-bit symbols for functions like sqrt() and `printf()`. Hacky workaround: comment out the "CONFIG_M32=y" line in the makefile. This will disable building the 32-bit versions of some tools. ("Edit the makefile" is, according to the docs, the canonical way to customize your build settings.) And I don't think there's any real shortcut for dealing with compiler error messages. You've just got to learn what they mean and what sort of thing tends to cause them.
- andyfleming 7y agoThanks! That solved it for me.