| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
This is not an Xcode specific question. I apologize if this is the wrong list. I get an error when trying to compile a simple program (below) with the -static flag. Mumukshu:~/tmp hrishi$ cat test.cpp #include<iostream> int main() { std::cout<<"Hello world\n"; return 0; } Mumukshu:~/tmp hrishi$ Mumukshu:~/tmp hrishi$ g++ -static test.cpp /var/tmp//cctnBafc.s:201:FATAL:incompatible feature used: section type non_lazy_symbol_pointers (must specify "-dynamic" to be used) man g++ says the following for the -static flag: "...This option will not work on Mac OS X unless all libraries (including libgcc.a) have also been compiled with -static. Since neither a static version of libSystem.dylib nor crt0.o are provided, this option is not useful to most people." Is it possible to compile static binaries on Mac OS X? Hrishi |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.