all: g++ -L/usr/lib -lboost_system get_sys_info.cpp ./a.out clean: rm *~ rm a.out test: # g++ -static -I/usr/include/boost -I/usr/include/boost/system get_sys_info.cpp # g++ -static -I/usr/include/boost -lboost_filesystem-mt get_sys_info.cpp # g++ -static -I/usr/include/boost -I/usr/include/boost/filesystem -lboost_filesystem-mt get_sys_info.cpp # g++ -static -lboost-_filesystem get_sys_info.cpp export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/include/boost # g++ -static -I/usr/include/boost -I/usr/include/boost/filesystem -lboost_system get_sys_info.cpp g++ -L/usr/include/boost -lboost_system get_sys_info.cpp ./a.out trash: export LD_LIBRARY_PATH=/usr/lib/libboost_system.so.1.46.1 # g++ -L/usr/lib/libboost_system -L/libboost_filesystem -lboost_system get_sys_info.cpp # g++ -L/usr/lib/libboost_system -L/usr/lib/libboost_filesystem -lboost_system get_sys_info.cpp # g++ -l/usr/lib/boost_system -l/usr/lib/boost_filesystem -lboost_system get_sys_info.cpp # g++ -L/usr/lib/boost_system -L/usr/lib/boost_filesystem -lboost_system get_sys_info.cpp # g++ -l/usr/lib/libboost_system.so.1.46.1 -l/libboost_filesystem.so.1.46.1 -lboost_system get_sys_info.cpp ./a.out qwerty: # g++ -L/usr/lib/libboost_system -L/libboost_filesystem -lboost_system get_sys_info.cpp # g++ -L/usr/lib/libboost_system -L/usr/lib/libboost_filesystem -lboost_system get_sys_info.cpp # g++ -l/usr/lib/boost_system -l/usr/lib/boost_filesystem -lboost_system get_sys_info.cpp # g++ -L/usr/lib/boost_system -L/usr/lib/boost_filesystem -lboost_system get_sys_info.cpp g++ -L/usr/lib -lboost_system get_sys_info.cpp ./a.out