I have been facing difficulties, now and then, linking my C++ projects with external libraries (e.g. Boost, wxWidgets, Gtkmm). Is there a way to incorporate these external libraries into the compiler (GNU G++ in my case, winXP SP3) so that the compiler can take them as part of it just like with C++ STL?
I have been facing difficulties, now and then, linking my C++ projects with external
Share
To link with a library (Taking example of Boost Libs and g++ compiler):
Compiling the source with correct include files
1) g++ -I /path/to/boost_dir -c code.cpp
2) g++ -L/path/to/your/boost/shared/libs -lboost_regex -o executable code.o
For the linking part I have taken example of boost regex library