Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTcpServer - Fortune example problem
Forum Updated to NodeBB v4.3 + New Features

QTcpServer - Fortune example problem

Scheduled Pinned Locked Moved General and Desktop
27 Posts 4 Posters 10.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koahnig
    wrote on 2 Aug 2011, 07:21 last edited by
    #18

    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.

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nnn123
      wrote on 2 Aug 2011, 07:41 last edited by
      #19

      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

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on 2 Aug 2011, 08:04 last edited by
        #20

        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.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nnn123
          wrote on 2 Aug 2011, 11:36 last edited by
          #21

          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?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on 2 Aug 2011, 12:20 last edited by
            #22

            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.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nnn123
              wrote on 3 Aug 2011, 06:06 last edited by
              #23

              Problem Solved!!
              I removed from the additional dependencies in the link tab libraries (gui and designer) and it worked.
              Thanks again :-)

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nnn123
                wrote on 3 Aug 2011, 06:07 last edited by
                #24

                (gui and designer - Qt libraries)

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nnn123
                  wrote on 3 Aug 2011, 06:46 last edited by
                  #25

                  I see now that it didn't work with those libraries because it was a realese and not debug

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on 3 Aug 2011, 09:33 last edited by
                    #26

                    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.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mlong
                      wrote on 3 Aug 2011, 15:51 last edited by
                      #27

                      If your problems solved, please be sure and add [Solved] to the beginning of the title of the thread. Thanks!

                      Software Engineer
                      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                      1 Reply Last reply
                      0

                      27/27

                      3 Aug 2011, 15:51

                      • Login

                      • Login or register to search.
                      27 out of 27
                      • First post
                        27/27
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved