QTcpServer - Fortune example problem
-
wrote on 2 Aug 2011, 07:21 last edited by
You should provide the error messages you got.
However, it looks that we are mixing up things.
Here you wrote:
[quote author="nnn123" date="1312177600"]qmake works. nmake doesn't work.[/quote]This is before any .vproj file. That was your reply on recompilation of the fortune example. This should be a trial with the command prompt started through visual studio. If nmake does not work in the command window opened through visual studio, there is a problem with your visual studio setup.
What is happening when you open the command prompt through visual studio and you simply type nmake?
Please post the messages obtained. -
wrote on 2 Aug 2011, 07:41 last edited by
can not open include file stddef.h. no such file or diretory
fatal error U1077 cl return code 0x2
fatal error U1077 make return code 0x2 -
wrote on 2 Aug 2011, 08:04 last edited by
It is missing a standard header file. So there is something with your environment wrong.
In your command prompt you can run "set include". There you should find the directory where this file is located. This entry is probably missing.However, in general I would suggest that you repair or reinstall your visual studio including all service packs. Then you should install Qt and vsaddin again.
The problems you have are not Qt related. It just happened to show up with your trials with the fortune server/client example.
-
wrote on 2 Aug 2011, 11:36 last edited by
I didn't reinstall yet.
I found out that there was an environment variable belong to VS with " at the end
I removed it and now nmake works!
I compiled the server and client with nmake and run the applications. It worked.
I tried to compile it with VS but it is still didn't work.
Do you still think I should reinstall or do you have other idea? -
wrote on 2 Aug 2011, 12:20 last edited by
Without knowing where and how you have chanegd the setting, it is not possible to give you a decent advise in that regard.
However, if you like to know my personal opinion, I would reinstall. As long as you do not know how the change happened, you cannot know what else could have been changed. Changing forth and back with all the trials is sometimes more time consuming than starting from scratch with a fresh setup.
-
wrote on 3 Aug 2011, 06:06 last edited by
Problem Solved!!
I removed from the additional dependencies in the link tab libraries (gui and designer) and it worked.
Thanks again :-) -
wrote on 3 Aug 2011, 06:07 last edited by
(gui and designer - Qt libraries)
-
wrote on 3 Aug 2011, 06:46 last edited by
I see now that it didn't work with those libraries because it was a realese and not debug
-
wrote on 3 Aug 2011, 09:33 last edited by
Good to know that you have solved your issue.
However, if problem are persistingh, you might want to consider to change to a newer version of Qt. -
wrote on 3 Aug 2011, 15:51 last edited by
If your problems solved, please be sure and add [Solved] to the beginning of the title of the thread. Thanks!
27/27