Author Topic: Compile problem  (Read 936 times)

S4m

  • Traveller
  • *
  • Posts: 10
    • View Profile
Compile problem
« 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)

S4m

  • Traveller
  • *
  • Posts: 10
    • View Profile
Re: Compile problem
« Reply #1 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

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
Re: Compile problem
« Reply #2 on: June 07, 2006, 07:15:47 pm »
Did you get any of these errors when trying to build Crystal Space libraries or plugins?
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

S4m

  • Traveller
  • *
  • Posts: 10
    • View Profile
Re: Compile problem
« Reply #3 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

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
Re: Compile problem
« Reply #4 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

::  PlaneShift Team Programmer  ::

S4m

  • Traveller
  • *
  • Posts: 10
    • View Profile
Re: Compile problem
« Reply #5 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 :



Could you tell me if the order of my includes is correct ?

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
Re: Compile problem
« Reply #6 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.

::  PlaneShift Team Programmer  ::

S4m

  • Traveller
  • *
  • Posts: 10
    • View Profile
Re: Compile problem
« Reply #7 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