mercredi 6 mai 2015

"linker command failed with exit code 1 (use -v to see invocation)" on xcode

Here is the error report

Undefined symbols for architecture x86_64:
"RightTriangle::RightTriangle()", 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)

Right triangle is a class that I wrote that is defined in a header file

Edit: Figured it out, had a constructor with nothing in it which the program did not like (eg Rectangle();) fixed it by putting code in it

Aucun commentaire:

Enregistrer un commentaire