I run into the following error when using make. So, I compiled the same program at the command line to check if there was a problem in my C++ code, but it works perfectly fine at the commandline.
g++ -o Cmain.exe Cmain.o -lmysqlclient -lboost_date_time -L ../lib -L/usr/local/lib -L/usr/lib/mysql
./Cmain.exe
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
make: *** [Cmain.exe] Aborted
make: *** Deleting file `Cmain.exe'
Any suggestions on what might be causing this error and how it can be fixed.