PDA

Click to See Complete Forum and Search --> : Attention anyone who has Linux and can compile something for me please?


Exta-C
Jul 1st, 2001, 10:58 PM
Hey, I have CygWin and it won't compile this C++ project i have. It must be Linux 'cos it's gotta Makefile

if there's anyone out there who can compile it for me, please post back -or-

MSN Messenger: amievil45@hotmail.com
AOL Messenger: DamnedMoose
ICQ Number: 118284507

Thanks~

P.S - it's the compiler im sure, cos i have a friend who compiled it under Redhat 7.1
P.P.S - yes, i do know how to use Unix so it wasnt my fault :D

denniswrenn
Jul 2nd, 2001, 12:18 AM
Makefiles are also generated by MSVC++.... Maybe you could post the code here so we could all take a look?

Exta-C
Jul 2nd, 2001, 09:45 PM
Do you mean the Makefile code or the actual project??

The makefile:


OBJS = gserver.o levels.o npcs.o otherstuff.o pascalstrings.o convertedclasses.o passwords.o libz.a
LLFLAGS =
SLFLAGS = -lcrypt -lmysqlclient
CFLAGS=
CC = g++ $(CFLAGS) -g -DNEWWORLD -DSERVERSIDENPCS -I/usr/include/mysql/
LD = g++

.SUFFIXES: .cpp
.cpp.o:
$(CC) -c $<

all: gserver

gserver: $(OBJS)
$(LD) -o gservernw $(OBJS) $(LLFLAGS) $(SLFLAGS)


clean:
-rm *.o *%

parksie
Jul 3rd, 2001, 07:34 AM
You need to change the MySQL library/header path.