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