I am newbie with CodeLite, but not sure it is a CodeLite problem as the problem also occurs with xcode when using the provided command. It looks like the compiler doesn't find the static lib (nLib_utils.a), however it well exists as it has been successfully compiled.
The error occurs when trying to build a console executable on MACOSX, the static lib header just contains standards:
Code: Select all
#include <iostream>
#include <string>
#include <clocale>
#include <ctime>
#include <unistd.h>
Code: Select all
#include "nLib_utils.h"
Code: Select all
/Applications/Xcode.app/Contents/Developer/usr/bin/g++ -o /Output/StandAlone_Bin/OSX/Debug/Test_UT /Output/StandAlone_Bin/OSX/Debug/main.cpp.o -L. -L/Output/Libs/OSX/Debug lnLib_utils
ld: library not found for -lnLib_utils
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [/Output/StandAlone_Bin/OSX/Debug/Test_UT] Error 1
Many thanks in advance for any help