PlaneShift

Development => Development Deliberation => VisualC++ => Topic started by: Kane Hart on May 19, 2008, 12:34:18 am

Title: Does anyone here even use MSVC?
Post by: Kane Hart on May 19, 2008, 12:34:18 am


Grr your my last hope.. I'm 99% sure I'm doing stuff right now since I did compile CS and cel right now PS is grr down to 3 errors!

I did cel and ps both in msvc 8 and msvc 9 and lol no luck... Grrr!


MSVC8:
Code: [Select]
1>------ Build started: Project: apppsnpcclient, Configuration: Release (with DLLs) Win32 ------
1>Linking...
1>networkmgr.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
1>libpsnet.lib(npcmessages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
1>..\..\psnpcclient.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://d:\development\ps\out\release8\build\apppsnpcclient\BuildLog.htm"
1>apppsnpcclient - 7 error(s), 0 warning(s)
2>------ Build started: Project: apppsclient, Configuration: Release (with DLLs) Win32 ------
3>------ Build started: Project: apppsserver, Configuration: Release (with DLLs) Win32 ------
3>Linking...
2>Linking...
2>   Creating library ..\..\psclient.lib and object ..\..\psclient.exp
2>pscelclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
2>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
2>libpsnet.lib(npcmessages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
2>psclientdr.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
2>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
2>psengine.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall csStringHashReversible::Request(char const *)const " (__imp_?Request@csStringHashReversible@@QBEKPBD@Z)
2>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
2>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
2>..\..\psclient.exe : fatal error LNK1120: 5 unresolved externals
2>Build log was saved at "file://d:\development\ps\out\release8\build\apppsclient\BuildLog.htm"
2>apppsclient - 13 error(s), 0 warning(s)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall csStringHashReversible::Request(char const *)const " (__imp_?Request@csStringHashReversible@@QBEKPBD@Z)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>libpsnet.lib(npcmessages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
3>..\..\psserver.exe : fatal error LNK1120: 5 unresolved externals
3>Build log was saved at "file://d:\development\ps\out\release8\build\apppsserver\BuildLog.htm"
3>apppsserver - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 3 failed, 25 up-to-date, 0 skipped ==========



MSVC9:

Code: [Select]
1>------ Build started: Project: apppsclient_static, Configuration: Release (with DLLs) Win32 ------
2>------ Build started: Project: apppsnpcclient_static, Configuration: Release (with DLLs) Win32 ------
3>------ Build started: Project: apppsserver_static, Configuration: Release (with DLLs) Win32 ------
2>Linking...
1>Linking...
3>Linking...
2>networkmgr.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
2>libpsnet.lib(npcmessages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
2>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
2>..\..\psnpcclient_static.exe : fatal error LNK1120: 4 unresolved externals
2>Build log was saved at "file://d:\development\ps\out\release9\build\apppsnpcclient_static\BuildLog.htm"
2>apppsnpcclient_static - 7 error(s), 0 warning(s)
1>   Creating library ..\..\psclient_static.lib and object ..\..\psclient_static.exp
1>pscelclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
1>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
1>libpsnet.lib(npcmessages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
1>psclientdr.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
1>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
1>psengine.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall csStringHashReversible::Request(char const *)const " (__imp_?Request@csStringHashReversible@@QBEKPBD@Z)
1>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
1>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
1>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
1>..\..\psclient_static.exe : fatal error LNK1120: 5 unresolved externals
1>Build log was saved at "file://d:\development\ps\out\release9\build\apppsclient_static\BuildLog.htm"
1>apppsclient_static - 13 error(s), 0 warning(s)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>libpsnet.lib(npcmessages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Request(unsigned long)const " (__imp_?Request@csStringHashReversible@@QBEPBDK@Z)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall csStringHashReversible::Register(char const *,unsigned long)" (__imp_?Register@csStringHashReversible@@QAEPBDPBDK@Z)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::~csStringHashReversible(void)" (__imp_??1csStringHashReversible@@QAE@XZ)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
3>libpsutil.lib(slots.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
3>libpsnet.lib(messages.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall csStringHashReversible::csStringHashReversible(unsigned int)" (__imp_??0csStringHashReversible@@QAE@I@Z)
3>cachemanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall csStringHashReversible::Request(char const *)const " (__imp_?Request@csStringHashReversible@@QBEKPBD@Z)
3>..\..\psserver_static.exe : fatal error LNK1120: 5 unresolved externals
3>Build log was saved at "file://d:\development\ps\out\release9\build\apppsserver_static\BuildLog.htm"
3>apppsserver_static - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 3 failed, 34 up-to-date, 0 skipped ==========
Title: Re: Does anyone here even use MSVC?
Post by: Tomislav on May 19, 2008, 05:03:50 am
I got the exact same problem a week ago (MSVC8), used the same condiguration (Debug with release DLL's).
Might be there's something missing in the compiling guide.
Title: Re: Does anyone here even use MSVC?
Post by: steuben on May 19, 2008, 07:53:51 am
you building trunk or stable?

and yeah i think there is casue i remember having simialr trouble when .4 came out but i can't remember what i tweaked to get it to work.
Title: Re: Does anyone here even use MSVC?
Post by: Kane Hart on May 19, 2008, 11:10:52 am
this is trunk.


Ok going talk about the way I run these:


CS:
D:\development\cs\mk\msvc8\wkstypical.sln
Ran in Release + DLL's
========== Build: 170 succeeded, 0 failed, 19 up-to-date, 0 skipped ==========

CEL:
D:\development\cel\msvc\8\wkscel.sln
Ran in Release + DLL's
========== Build: 58 succeeded, 0 failed, 4 up-to-date, 0 skipped ==========

PS: - Attempted 1
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Release + Static Lib's
========== Build: 13 succeeded, 8 failed, 7 up-to-date, 0 skipped ==========

Trying again just Release with dll's (of course I hit clean first before I always build)

PS: - Attempted 2
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Release + DLL's
========== Build: 18 succeeded, 3 failed, 7 up-to-date, 0 skipped ==========


So I redid a clean project and well thats what happens.. Going to next try debug mode with dll's for the cs and cel.




Here is my fresh start again cs and cel debug with dll's and then just ps with dll's and if no luck try the statiic libs.


CS:
D:\development\cs\mk\msvc8\wkstypical.sln
Ran in Debug + DLL's
========== Build: 170 succeeded, 0 failed, 19 up-to-date, 0 skipped ==========

CEL:
D:\development\cel\msvc\8\wkscel.sln
Ran in Debug + DLL's
========== Build: 58 succeeded, 0 failed, 4 up-to-date, 0 skipped ==========

I change location of lib files for PS:
D:\development\cs\out\debug8\libs
D:\development\cel\out\debug8\libs



PS: - Attempted 1
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Release + Static Lib's
========== Build: 13 succeeded, 8 failed, 7 up-to-date, 0 skipped ==========


PS: - Attempted 2
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Release + DLL's
========== Build: 18 succeeded, 3 failed, 7 up-to-date, 0 skipped ==========



So Cel and CS in debug mode made no difference... WTH? Ok lets do it all again this time Cel and CS in lib mode god lol.



CS:
D:\development\cs\mk\msvc8\wkstypical.sln
Ran in Static Lib + DLL's
========== Build: 170 succeeded, 0 failed, 19 up-to-date, 0 skipped ==========

CEL:
D:\development\cel\msvc\8\wkscel.sln
Ran in Static Lib + DLL's
========== Build: 58 succeeded, 0 failed, 4 up-to-date, 0 skipped ==========




PS: - Attempted 1
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Release + Static Lib's
========== Build: 13 succeeded, 8 failed, 7 up-to-date, 0 skipped ==========



PS: - Attempted 2
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Release + DLL's
========== Build: 18 succeeded, 3 failed, 7 up-to-date, 0 skipped ==========

PS: - Attempted 3
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Debug + DLL's
========== Build: 13 succeeded, 8 failed, 7 up-to-date, 0 skipped ==========

PS: - Attempted 4
D:\development\ps\mk\msvc8\wkspstypical.sln
Ran in Release + Static Lib's
========== Build: 18 succeeded, 3 failed, 7 up-to-date, 0 skipped ==========
Title: Re: Does anyone here even use MSVC?
Post by: Tomislav on May 19, 2008, 12:51:04 pm
you building trunk or stable?

Trunk.
Title: Re: Does anyone here even use MSVC?
Post by: Kane Hart on May 19, 2008, 12:52:04 pm
you building trunk or stable?

Trunk.

are you also getting the same issue?
Title: Re: Does anyone here even use MSVC?
Post by: Lanarel on May 19, 2008, 02:10:00 pm
This problem started for msvc (there are those of us that do use it :)) when some new function in CS was used. THere should be a bump of CS revision soon that hopefully solves this issue. Xordan says that revision 29696 should work okay, so I suggest to move to that one. I will do so now and let you know if it works when it finishes in a few hours :)
Title: Re: Does anyone here even use MSVC?
Post by: Kane Hart on May 19, 2008, 04:18:46 pm
This problem started for msvc (there are those of us that do use it :)) when some new function in CS was used. THere should be a bump of CS revision soon that hopefully solves this issue. Xordan says that revision 29696 should work okay, so I suggest to move to that one. I will do so now and let you know if it works when it finishes in a few hours :)

I had a error with that build but apparently not used so will try again.. I was using CS 1.2.. I was like damn.. Then I did 1.3 and was like exact same error.. So in the end.. Damn lol.

Lanarel Wins the gold ;)

Looks like your right.. Just a warning to people. You may get a error if its just one error related to cacacanvas or something PS does not use it and everything else compiles fine..

So just use trunk/29696 for cs
Title: Re: Does anyone here even use MSVC?
Post by: ThomPhoenix on May 20, 2008, 07:58:02 am
Good to know it works for you! CS implemented a new setenv() function, and this caused issues for us Windows users. There's still the caca error, which I reported before, but I got the "It works for me so I won't fix it" response. I will keep nagging.