Created
August 6, 2014 20:01
-
-
Save jwatzman/276d719f0d85ec3bc4eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[01:01P][jwatzman@jwatzman-mba:/tmp] $ cat foo.cpp | |
extern "C" void configure_link_extern_weak_test() __attribute__((weak)); | |
int main(int argc, char** argv) { | |
return configure_link_extern_weak_test == nullptr; | |
} | |
[01:01P][jwatzman@jwatzman-mba:/tmp] $ g++-4.8 foo.cpp | |
foo.cpp: In function 'int main(int, char**)': | |
foo.cpp:3:44: error: 'nullptr' was not declared in this scope | |
return configure_link_extern_weak_test == nullptr; | |
^ | |
[01:01P][jwatzman@jwatzman-mba:/tmp] $ g++-4.8 --std=gnu++0x foo.cpp | |
Undefined symbols for architecture x86_64: | |
"_configure_link_extern_weak_test", referenced from: | |
_main in ccVm5bnn.o | |
ld: symbol(s) not found for architecture x86_64 | |
collect2: error: ld returned 1 exit status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment