Archive for the ‘gcc’ Category

April 11, 2013 0

check if library is on ld search path

By in C++, gcc, linux

If you have linker problems you might want to ensure that you actually have the librariess that you are linking into your program on your ld search path. This can be investigated using ldconfig and grep ldconfig -v prints out the paths on the ld search path and what libraries is on the path. It […]

Tags: , , ,

November 30, 2012 0

compiling vtk

By in checkinstall, deb, dpkg, gcc

compiling vtk gave some errors regarding xt solution was to install libxt-dev and rerun cmake for vtk. Then run make again. checkinstall can be used for creating a deb package

Tags: , , ,

August 7, 2012 0

linker error when using pkg-config

By in c++, C++, Eclipse, gcc

If you are not able to link with a library that is specified via pkg-config then make sure your pkg-config flag is placed in the end of the compiler/linker command eg: g++ -o “OpenCV2.3Test”  ./main.o `pkg-config –libs opencv` instead of g++ `pkg-config –libs opencv` -o “OpenCV2.3Test”  ./main.o In Eclipse this is done by going to project […]

Tags: , ,

July 4, 2012 0

determine gcc include path

By in c++, gcc

If you are not sure which directories gcc looks for header files or in which order this is done run the command gcc -v -x c -E –