0


I have some code in cpp (where the main() lies) and want to call functions located in a c file. Compiling the cpp's and the c's give the output .o files, but when using clang++ to generate the final executable, it is failing because the cpp is unable to find the c function:

Undefined symbols for architecture x86_64:
  "FunctionInCFile(char const*, char const*, int, int, int, int)", referenced from:
      FunctionInCPPFile() in helixQtCmd.o
ld: symbol(s) not found for architecture x86_64
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89

0 Answers0