simple problem:
given the following program:
I get a linker error ...
Undefined symbols for architecture x86_64: _addEmUp", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
It seems that he is not trying to compile it.
it does not need to be static , I would not think based on what I read:
Built-in linker error function (since it is in a different object and deals with 2 definitions, not zero)
This is a linked link, but it is C ++, and I don't think it is good practice in std C to put code in a header: the built-in linker error function
compiler information:
cc --version Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix
compilation example:
# cc main.c Undefined symbols for architecture x86_64: "_addEmUp", referenced from: _main in main-sq3kr4.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocatio
Grady player
source share