[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pbmserv-dev] Is it possible to compile the game modules under Windows?



Well, I guess the subject line pretty much says it all. :)

I've been toying around a little with the game sources whilst I teach
myself enough C++ to implement some games in the (hopefully near) future,
but I seem unable to compile them under Windows. I'm using Dev-C++ 4.0,
which is a free programming environment that makes use of the mingw C++
compiler. Whenever I try to compile a game, being careful to include all
the necessary header files and stuff, I get these errors:

48 game.cpp
 implicit declaration of function `int getpid(...)'

100 gamefile.cpp
 implicit declaration of function `int unlink(...)'

172 ratings.cpp
 implicit declaration of function `int unlink(...)'

6 sendmail.cpp
C:\DEV-C_~1\INCLUDE\stdio.h:323: parse error before `char'

324 c:\dev-c_~1\include\stdio.h
 declaration does not declare anything

34 sendmail.cpp
 implicit declaration of function `int sleep(...)'

I think I've read somewhere that the functions getpid() and unlink(), and
possibly also sleep(), are so-called "unix-isms", and as such Windows will
always choke on them. Is this correct? Is there any way I can get around
this, other than switching to Linux?

Any assistance to this poor newbie would be greatly appreciated.

Sirrus