PlaneShift

Development => Development Deliberation => VisualC++ => Topic started by: Gergon on December 20, 2007, 11:45:45 pm

Title: After compiling the PlaneShift source, the programs have a strange error...
Post by: Gergon on December 20, 2007, 11:45:45 pm
After I compilied them, the programs did not have any icons, I thought well, maybe theres not sposed to be any, and I ran pssetup.exe, and it rapidly flashes black and white on the inside of the borders.
I used MSVC 9.0 to compile, I'm currently recompiling it, it takes a while.

Note:
In build -> Configuration Manager, under active salution manager I selected Release (with static libs), do I need to select something els?

Thanks!
Gergon
Title: Re: After compiling the PlaneShift source, the programs have a strange error...
Post by: Gergon on December 21, 2007, 12:32:35 pm
I've build it 3 times, and got this everytime
Code: [Select]
appupdater - 3 error(s), 4 warning(s)
========== Build: 16 succeeded, 2 failed, 7 up-to-date, 0 skipped ==========

And these  were the errors and warnings I got,
Code: [Select]
Compiling...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
updaterconfig.cpp
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(502) : error C2632: 'int' followed by 'int' is illegal
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(502) : warning C4091: 'typedef ' : ignored on left of 'int' when no variable is declared
updater.cpp
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(502) : error C2632: 'int' followed by 'int' is illegal
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(502) : warning C4091: 'typedef ' : ignored on left of 'int' when no variable is declared
registryfile.cpp
registrycreator.cpp
registry.cpp
psupdaterengine.cpp
pawsupdaterwindow.cpp
pawsupdateroptions.cpp
pawsserverlist.cpp
md5.cpp
fileutil.cpp
download.cpp
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(502) : error C2632: 'int' followed by 'int' is illegal
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(502) : warning C4091: 'typedef ' : ignored on left of 'int' when no variable is declared
changelist.cpp
change.cpp
Title: Re: After compiling the PlaneShift source, the programs have a strange error...
Post by: ThomPhoenix on December 23, 2007, 02:41:02 pm
Self-compiled Planeshift does not have any fancy icons for the executables, they just have the standard windows app icons.

Besides the "Output" tab there is also a tab for Errors and Warnings in MSVC, could you show what errors you are getting?
There are some known compiling issues with Trunk Planeshift at the moment, I think you can fix one of them by grabbing revision 395 of pscelclient.cpp, but there are still many others. You shouldn't encounter errors when using Stable.

Also, you shouldn't see these errors: C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(502) I'm wildly guessing here, but it might be an issue with your MSVC installation or the install of the SDK.

And, although Release (with static libs) should work, can you try using Debug (with static libs)?
Title: Re: After compiling the PlaneShift source, the programs have a strange error...
Post by: Lanarel on December 23, 2007, 03:50:40 pm
Also, if you are using msvc, be sure to check out this bug report (http://www.hydlaa.com/flyspray_upgrade/index.php?do=details&task_id=843), as without the (not 100% sure correct) fixes in there, you won't be able to compile and link everything.
Title: Re: After compiling the PlaneShift source, the programs have a strange error...
Post by: Gergon on December 24, 2007, 02:51:13 pm
Well, I just made a big switch from Windows to Linux.
When I get the needed tools, I'll try to compile it with the Linux guide.
Thanks for helping though.