View Single Post
  #3  
Old 12-16-2004, 01:44 PM
MOG
Fire Beetle
 
Join Date: Dec 2004
Posts: 16
Default

I found it necessary to edit the makefile slightly as references to libs were incorrect for windows. In particular,

LINKOPTS=-lz -lopengl32 -lglu32 -lSDL -LSDL

But that wasn't enough to get it to compile.

Code:
$ make
g++  -g  src/pfs.o src/ter.o src/draw.o src/ddslib.o src/move.o src/matrix.o src/zon.o src/file.o src/octree.o src/frustum.o src/main.o -lz -lopengl32 -lglu32 -lSDL -LSDL  -o openeq
src/pfs.o(.text+0x252): In function `ZN9PFSLoader4OpenEP6_iobuf':
/openeq/src/pfs.cpp:74: undefined reference to `ntohl'
c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain@16'
make: *** [openeq] Error 1
By the way, I have noticed I posted this out of the support area by mistake, feel free to transfer the topic to where it is allowed. I apologise for the oversight.


MOG
Reply With Quote