Creating Setup
-
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
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] -
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]????? 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
-
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
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]
-
????? 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
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] -
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
may be the second one is ntwdblib.lib .I found it from the first post.
nave [OpenedFileFinder]
-
????? 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
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
-
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
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] -
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]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
-
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
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] -
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]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