Archive for the ‘c++’ Category

October 31, 2014 0

Qt creator and perhaps visual studio 2013 is missing include directories and other env variables

By in c++, C++, Visual Studio 2013, Windows

Symptom: Cant compile any programs and compiler complaining about missing standard header files such as stddef.h diagnose: in QT creator go to project settings and inspect environment variables. There should be e.g an INCLUDE variable. If not the vcvarsall.bat file that is accompanying VS is not run propable. Following this post: http://schrievkrom.wordpress.com/2011/01/25/error-cannot-determine-the-location-of-the-vs-common-tools-folder/ it seems that the […]

Tags: ,

April 17, 2013 0

define install targets in qmake pro project files

By in C++, c++

There isn’t much documentation about how to define install targets in a .pro file for qmake. This link does however clearify some aspects of the possibilities: http://doc.qt.digia.com/4.3/qmake-environment-reference.html#installs  

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 –