![]() ![]() I happen to have an older program that absolutely depends upon pointers being 32-bits, and I'm trying to test something in it. ![]() (the file "a.c" is just: int main (int argc, char **argv) ) If I omit "-m32", I get a small 64-bit program. Then you should be able compile it like gcc -o mybinaryfile mysourcefile. Ld: dynamic executables or dylibs must link with libSystem.dylib for architecture i386Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation) The easiest way is probably to install XCode development environment from the CDs/DVDs you got with your Mac, which will give you gcc. ![]() Ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd (3 slices) Ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS) ![]() You can install Code Blocks in any version of macOS like macOS 10.15 (aka. Here's the failure I get when specifying "-m32": cc -m32 a.c Code Blocks is a free and cross platform IDE for C, C++ and Fortran. Is it possible to compile C code in 32-bit mode on macOS Monterey? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |