You are not logged in.

1

Tuesday, March 2nd 2010, 8:16pm

diagnosing qt installation error

I'm having rather odd problems installing Qt on a new machine and integrating it into Visual Studio. I've been using Qt for almost a year on the project without much problems, but when I port the code over to a new machine I'm getting errors that don't make any sense, and I have to believe that something has gone horribly wrong in installation.

I installed the SDK, installed the VS add in, then configured Qt (from a Visual Studio command prompt), and ran nmake. Everything succeeded. I included the libraries in Project -> properties -> linker, added the additional include directories, and set up everything I could think of to make sure Qt was properly set up on this machine (also added the appropriate environment variables and edited my PATH).

When I compile, I get a series of errors that look like the following:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2>c:\qt\2009.02\qt\include\qtcore\../../src/corelib/tools/qlist.h(341) : error C2061: syntax error : identifier 'n'
2>    	c:\qt\2009.02\qt\include\qtcore\../../src/corelib/tools/qlist.h(339) : while compiling class template member function 'void QList<T>::node_construct(QList<T>::Node *,const T &)'
2>    	with
2>    	[
2>        	T=QString
2>    	]
2>    	c:\qt\2009.02\qt\include\qtcore\../../src/corelib/tools/qlist.h(532) : while compiling class template member function 'QList<T>::~QList(void)'
2>    	with
2>    	[
2>        	T=QString
2>    	]
2>    	c:\qt\2009.02\qt\include\qtcore\../../src/corelib/tools/qstringlist.h(67) : see reference to class template instantiation 'QList<T>' being compiled
2>    	with
2>    	[
2>        	T=QString
2>    	]


It sounds like it doesn't like the code in Qt, which doesn't make any sense. Has anyone ever seen this before?

Rate this thread