PlaneShift
Development => Development Deliberation => Topic started by: S4m on June 07, 2006, 04:49:29 pm
-
Hello all
I trying to compil PS and have a problem.
When compiling the psutil modul, Visual return this kind of error
d:\My Projects\mmorpg\planeshift\CS\include\csutil\snprintf.h(18): error C2144: syntax error : 'int' should be preceded by ';'
d:\My Projects\mmorpg\planeshift\CS\include\csutil\snprintf.h(20): error C2146: syntax error : missing ';' before identifier 'CS_GNUC_PRINTF'
d:\My Projects\mmorpg\planeshift\CS\include\csutil\snprintf.h(20): error C2501: 'CS_GNUC_PRINTF' : missing storage-class or type specifiers
d:\My Projects\mmorpg\planeshift\CS\include\csutil\snprintf.h(20): error C2078: too many initializers
The code for this error is in the snprintf.h :
extern CS_CRYSTALSPACE_EXPORT int cs_snprintf (char* buf, size_t bufSize,
const char* format, /*args*/ ...)
CS_GNUC_PRINTF (3, 4);
I think it is an include problem but don't find it... an idea ?
PS : sorry for my bad english ;o)
-
it seems to be a problem with CS_CRYSTALSPACE_EXPORT
I use the last CS and CEL source
grrrr
-
Did you get any of these errors when trying to build Crystal Space libraries or plugins?
-
Not that kind of error
Some module don't compil but I don't need them
In fact I only need the server part of PlaneShift
-
My bet's on a date missmatch. Different PS dates require different CS dates.
You need one of these 2 sets:
0.3.014 (compatable with public server):
CS/CEL: CVS date "2006-04-06 00:00:00 UTC" OR SVN revisions 23928/1859
PS date: "2006-04-14 00:00:00 UTC"
0.3.015 (not yet released):
CS/CEL: SVN revisons 24454/1939
with latest (HEAD) PS CVS
-
ok I downloaded the CS and CEL located here -> http://planeshift.sourceforge.net/sources/
I have the same problem :surrender:
This is a printscreen of my visual studio :
(http://img468.imageshack.us/img468/4030/screen0ly.th.jpg) (http://img468.imageshack.us/my.php?image=screen0ly.jpg)
Could you tell me if the order of my includes is correct ?
-
You used the PS sources from there too, I hope? If you didn't that'd be the issue, as I said above.
-
It's ok, I have deleted planeshift directory, reinstall source and recompile, thats work ! Don't understand 8)
So thanks