PlaneShift

Development => Development Deliberation => Topic started by: S4m on June 07, 2006, 04:49:29 pm

Title: Compile problem
Post 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

Code: [Select]
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 :

Code: [Select]
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)
Title: Re: Compile problem
Post by: S4m on June 07, 2006, 06:12:32 pm
it seems to be a problem with CS_CRYSTALSPACE_EXPORT

I use the last CS and CEL source

grrrr
Title: Re: Compile problem
Post by: acraig on June 07, 2006, 07:15:47 pm
Did you get any of these errors when trying to build Crystal Space libraries or plugins?
Title: Re: Compile problem
Post by: S4m on June 07, 2006, 07:50:01 pm
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
Title: Re: Compile problem
Post by: DaveG on June 07, 2006, 08:32:51 pm
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
Title: Re: Compile problem
Post by: S4m on June 08, 2006, 12:08:18 am
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 ?
Title: Re: Compile problem
Post by: DaveG on June 08, 2006, 05:35:02 am
You used the PS sources from there too, I hope?  If you didn't that'd be the issue, as I said above.
Title: Re: Compile problem
Post by: S4m on June 08, 2006, 09:07:26 am
It's ok, I have deleted planeshift directory, reinstall source and recompile, thats work ! Don't understand  8)

So thanks