Ok never mind.
I found that Alfred and Wraith from AdminMod like to spice things up by
using LINUX as a def instead of __linux__....
Damn why can't everyone just use #ifndef WIN32 instead =(
----- Original Message -----
From: "c0ldfyr3" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 21, 2004 2:52 AM
Subject: [hlcoders] Compiling MM Dll on Linux
> Hey, just new to the list and I think it's the right place.
> If its not correct me and ill go away....
>
> Trying to compile a plugin of mine on RedHat 9, I know, I know but its all
I
> gots k ?
>
> Compiles and runs perfect, same project using MSVC WinXP.
>
> Giving me "undefined symbol: __5AmDirPCc", which is defined in AmSFNode.h
> which is included in everything.
> Im all but about to give up at this stage =(
>
> MakeFile is ...
>
============================================================================
> =============================
> CC = gcc
> CPP = gcc
> BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -D__linux__
> CPPFLAGS =
>
${BASEFLAGS} -march=i386 -s -O2 -Wall -w -I. -I../hlsdk-2.3/sourcecode/engi
>
ne -I../hlsdk-2.3/sourcecode/common -I../metamod/metamod -I../hlsdk-2.3/sour
> cecode/dlls -I../hlsdk-2.3/sourcecode/pm_shared
>
> OBJ = AmSFNode.o config.o dllapi.o h_export.o usrmsg.o sdk_util.o
> hostitron.o
>
> hostitron_mm_i386.so: ${OBJ}
> ${CPP} -fPIC -shared -o $@ ${OBJ} -ldl
>
> clean:
> -rm -f *.o
> -rm -f *.so
>
> %.o: %.cpp
> ${CPP} ${CPPFLAGS} -c $< -o $@
>
> %.o: %.c
> ${CC} ${CPPFLAGS} -c $< -o $@
>
>
============================================================================
> =============================
> Any help would be greatly appreciated.
>
> -= c0ldfyr3 =-
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders