I’m trying to compile a .cpp + .h file that includes newmat.h and tinyxml.h – I have libnewmat.a and libtinyxml.a in the same directory as my .cpp and .h files and I’m running
g++ -lnewmat -ltinyxml test.cpp test.h
but still getting newmat.h and tinyxml.h not found at the beginning of compilation. I’m obviously a total c++ newb because this seems like it should be trivial.
Try this one:
-I.to look the header files in the current folder and include your required .h in your .c files