Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Creating Setup

Creating Setup

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionworkspace
15 Posts 4 Posters 0 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.
  • G garfield185

    I built as Release before getting the files to the setup, now there are some strange errors like error LNK2001: unresolved external symbol ... many times and about 2 different obj files. What does it mean?

    Time to come clean... Vive y deja vivir / Live and let live Javier

    C Offline
    C Offline
    Cedric Moonen
    wrote on last edited by
    #6

    Release and debug configurations have both separate options, so everything that you set for the debug version (like include paths or additional libraries), you should also set it for the release version.


    Cédric Moonen Software developer
    Charting control [v1.2]

    G 1 Reply Last reply
    0
    • C Cedric Moonen

      Release and debug configurations have both separate options, so everything that you set for the debug version (like include paths or additional libraries), you should also set it for the release version.


      Cédric Moonen Software developer
      Charting control [v1.2]

      G Offline
      G Offline
      garfield185
      wrote on last edited by
      #7

      ????? Can you explain it? Do you mean that the path I have been using may not be the correct ones in the release version? So, how do I know the correct paths in that case?

      Time to come clean... Vive y deja vivir / Live and let live Javier

      C G 2 Replies Last reply
      0
      • G garfield185

        Here. //Some stupid warnings before.. Generating Code... Linking... RutinasBD.obj : error LNK2001: unresolved external symbol _dbdead RutinasBD.obj : error LNK2001: unresolved external symbol _dbuse RutinasBD.obj : error LNK2001: unresolved external symbol _dbopen RutinasBD.obj : error LNK2001: unresolved external symbol _dbsetlname RutinasBD.obj : error LNK2001: unresolved external symbol _dbsetlogintime RutinasBD.obj : error LNK2001: unresolved external symbol _dblogin RutinasBD.obj : error LNK2001: unresolved external symbol _dbmsghandle RutinasBD.obj : error LNK2001: unresolved external symbol _dberrhandle RutinasBD.obj : error LNK2001: unresolved external symbol _dbsqlexec RutinasBD.obj : error LNK2001: unresolved external symbol _dbcmd RutinasBD.obj : error LNK2001: unresolved external symbol _dbnextrow RutinasBD.obj : error LNK2001: unresolved external symbol _dbbind RutinasBD.obj : error LNK2001: unresolved external symbol _dbresults RutinasBD.obj : error LNK2001: unresolved external symbol _dbclose SockUdp.obj : error LNK2001: unresolved external symbol ___WSAFDIsSet@8 SockUdp.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0 SockUdp.obj : error LNK2001: unresolved external symbol _select@20 SockUdp.obj : error LNK2001: unresolved external symbol _connect@12 SockUdp.obj : error LNK2001: unresolved external symbol _socket@12 SockUdp.obj : error LNK2001: unresolved external symbol _getprotobyname@4 SockUdp.obj : error LNK2001: unresolved external symbol _gethostbyaddr@12 SockUdp.obj : error LNK2001: unresolved external symbol _inet_addr@4 SockUdp.obj : error LNK2001: unresolved external symbol _gethostbyname@4 SockUdp.obj : error LNK2001: unresolved external symbol _htons@4 SockUdp.obj : error LNK2001: unresolved external symbol _WSAStartup@8 SockUdp.obj : error LNK2001: unresolved external symbol _send@16 SockUdp.obj : error LNK2001: unresolved external symbol _recv@16 SockUdp.obj : error LNK2001: unresolved external symbol _closesocket@4 SockUdp.obj : error LNK2001: unresolved external symbol _sendto@24 Release/TMB.exe : fatal error LNK1120: 29 unresolved externals Error executing link.exe. TMB.exe - 30 error(s), 25 warning(s)

        Time to come clean... Vive y deja vivir / Live and let live Javier

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #8

        garfield185 wrote:

        SockUdp.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0

        This is because you havent include the Ws2_32.lib in the project setting( project settings->Link-> In the object/library module edit box, enter Ws2_32.lib )

        garfield185 wrote:

        RutinasBD.obj : error LNK2001: unresolved external symbol _dbdead

        You haven't include the lib file corresponding to the function dbdead(). Find it and add it in the same location as above( May be you can get it from the debug configuration ).

        nave [OpenedFileFinder]

        1 Reply Last reply
        0
        • G garfield185

          ????? Can you explain it? Do you mean that the path I have been using may not be the correct ones in the release version? So, how do I know the correct paths in that case?

          Time to come clean... Vive y deja vivir / Live and let live Javier

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #9

          What I mean is that: If you changed some settings in the project properties when working in debug mode (for example, you added a new include path or you specified a library to link your project to), all these settings will be 'lost' when you switch to release mode. So, you have to configure all of that once again. A way to avoid that (in VS2005) is to choose "All configurations" when you do a change in the project properties. It seems that in release mode you are not linking against the socket library (and you do that for the debug version because you don't have errors when building).


          Cédric Moonen Software developer
          Charting control [v1.2]

          1 Reply Last reply
          0
          • G garfield185

            Here. //Some stupid warnings before.. Generating Code... Linking... RutinasBD.obj : error LNK2001: unresolved external symbol _dbdead RutinasBD.obj : error LNK2001: unresolved external symbol _dbuse RutinasBD.obj : error LNK2001: unresolved external symbol _dbopen RutinasBD.obj : error LNK2001: unresolved external symbol _dbsetlname RutinasBD.obj : error LNK2001: unresolved external symbol _dbsetlogintime RutinasBD.obj : error LNK2001: unresolved external symbol _dblogin RutinasBD.obj : error LNK2001: unresolved external symbol _dbmsghandle RutinasBD.obj : error LNK2001: unresolved external symbol _dberrhandle RutinasBD.obj : error LNK2001: unresolved external symbol _dbsqlexec RutinasBD.obj : error LNK2001: unresolved external symbol _dbcmd RutinasBD.obj : error LNK2001: unresolved external symbol _dbnextrow RutinasBD.obj : error LNK2001: unresolved external symbol _dbbind RutinasBD.obj : error LNK2001: unresolved external symbol _dbresults RutinasBD.obj : error LNK2001: unresolved external symbol _dbclose SockUdp.obj : error LNK2001: unresolved external symbol ___WSAFDIsSet@8 SockUdp.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0 SockUdp.obj : error LNK2001: unresolved external symbol _select@20 SockUdp.obj : error LNK2001: unresolved external symbol _connect@12 SockUdp.obj : error LNK2001: unresolved external symbol _socket@12 SockUdp.obj : error LNK2001: unresolved external symbol _getprotobyname@4 SockUdp.obj : error LNK2001: unresolved external symbol _gethostbyaddr@12 SockUdp.obj : error LNK2001: unresolved external symbol _inet_addr@4 SockUdp.obj : error LNK2001: unresolved external symbol _gethostbyname@4 SockUdp.obj : error LNK2001: unresolved external symbol _htons@4 SockUdp.obj : error LNK2001: unresolved external symbol _WSAStartup@8 SockUdp.obj : error LNK2001: unresolved external symbol _send@16 SockUdp.obj : error LNK2001: unresolved external symbol _recv@16 SockUdp.obj : error LNK2001: unresolved external symbol _closesocket@4 SockUdp.obj : error LNK2001: unresolved external symbol _sendto@24 Release/TMB.exe : fatal error LNK1120: 29 unresolved externals Error executing link.exe. TMB.exe - 30 error(s), 25 warning(s)

            Time to come clean... Vive y deja vivir / Live and let live Javier

            N Offline
            N Offline
            Naveen
            wrote on last edited by
            #10

            may be the second one is ntwdblib.lib .I found it from the first post.

            nave [OpenedFileFinder]

            1 Reply Last reply
            0
            • G garfield185

              ????? Can you explain it? Do you mean that the path I have been using may not be the correct ones in the release version? So, how do I know the correct paths in that case?

              Time to come clean... Vive y deja vivir / Live and let live Javier

              G Offline
              G Offline
              garfield185
              wrote on last edited by
              #11

              Ok, I know understand. When changing to release version is like reseting the options, so I have to fill again all the option such us libraries. That was the error. Thanks!!

              Time to come clean... Vive y deja vivir / Live and let live Javier

              C 1 Reply Last reply
              0
              • G garfield185

                Ok, I know understand. When changing to release version is like reseting the options, so I have to fill again all the option such us libraries. That was the error. Thanks!!

                Time to come clean... Vive y deja vivir / Live and let live Javier

                C Offline
                C Offline
                Cedric Moonen
                wrote on last edited by
                #12

                garfield185 wrote:

                When changing to release version is like reseting the options

                Not totally true. In fact, every configuration has its own properties, hopefully. Hopefully because for specific things they need to be different: when you build in debug mode, you want to link with debug libraries and in release, you want to link with release libraries. But most of the settings are the same. It can be quite annoying to set all the settings once again, that's why there is an option (in VS2005) to save the changes for all configurations. When you open you properties, it is in the top-left of the window ("Configuration").


                Cédric Moonen Software developer
                Charting control [v1.2]

                D 1 Reply Last reply
                0
                • C Cedric Moonen

                  garfield185 wrote:

                  When changing to release version is like reseting the options

                  Not totally true. In fact, every configuration has its own properties, hopefully. Hopefully because for specific things they need to be different: when you build in debug mode, you want to link with debug libraries and in release, you want to link with release libraries. But most of the settings are the same. It can be quite annoying to set all the settings once again, that's why there is an option (in VS2005) to save the changes for all configurations. When you open you properties, it is in the top-left of the window ("Configuration").


                  Cédric Moonen Software developer
                  Charting control [v1.2]

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #13

                  Cedric Moonen wrote:

                  ...that's why there is an option (in VS2005)...

                  It's also in V6.


                  "A good athlete is the result of a good and worthy opponent." - David Crow

                  "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                  C 1 Reply Last reply
                  0
                  • D David Crow

                    Cedric Moonen wrote:

                    ...that's why there is an option (in VS2005)...

                    It's also in V6.


                    "A good athlete is the result of a good and worthy opponent." - David Crow

                    "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                    C Offline
                    C Offline
                    Cedric Moonen
                    wrote on last edited by
                    #14

                    I wasn't sure (long time that I didn't use VS6) so I preferred not to say something wrong ;P


                    Cédric Moonen Software developer
                    Charting control [v1.2]

                    D 1 Reply Last reply
                    0
                    • C Cedric Moonen

                      I wasn't sure (long time that I didn't use VS6) so I preferred not to say something wrong ;P


                      Cédric Moonen Software developer
                      Charting control [v1.2]

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #15

                      Fair enough. I just wanted everyone to know that it wasn't a new feature.


                      "A good athlete is the result of a good and worthy opponent." - David Crow

                      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups