General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!
Moderator: Team Members
Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Dec 07, 2008 4:43 am
I'm getting a compile error when compiling the source and I have no idea how to fix it. Anyone have any ideas?
Code: Select all
C:\Documents and Settings\Scott\Desktop\EQ2Emu Source\World>make all
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align
-Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY
-DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../comm
on/timer.cpp -o ../common/timer.o
g++: unrecognized option `-pthread'
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/cstring:51,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/char_traits.h:45,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/string:47,
from ../common/../common/../common/../common/types.h:23,
from ../common/../common/../common/Mutex.h:29,
from ../common/../common/debug.h:65,
from ../common/timer.cpp:20:
../common/../common/../common/../common/unix.h:32: error: previous declaration of `char* strlwr(char*)' with C++ linkage
/usr/include/string.h:74: error: conflicts with new declaration with C linkage
../common/../common/../common/../common/unix.h:31: error: previous declaration of `char* strupr(char*)' with C++ linkage
/usr/include/string.h:75: error: conflicts with new declaration with C linkage
make: *** [../common/timer.o] Error 1
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Post
by LethalEncounter » Sun Dec 07, 2008 7:38 am
That is odd, have you tried doing a make clean first?
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Dec 07, 2008 8:56 am
Ya I always try a make clean first.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Post
by LethalEncounter » Sun Dec 07, 2008 9:28 am
oh wait, this is for Windows. Guess I should have read the title

That makefile is for Linux compiles, for Windows use VS .Net.
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Dec 07, 2008 9:31 am
Oh, duh. Just open World.vcproj and build it right?
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Post
by LethalEncounter » Sun Dec 07, 2008 9:34 am
Use the solution (sln file), but otherwise yup.
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Dec 07, 2008 9:43 am
Cool thanks. Do you know where I can get zlib.h and errmsg.h? Seems the build can't find those files. Tried to Google them but I can't seem to find the actual files.
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Dec 07, 2008 11:01 am
Thanks.

-
John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
-
Contact:
Post
by John Adams » Sun Dec 07, 2008 11:02 am
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Dec 07, 2008 11:07 am
Doh! I even tried searching the forums too. I guess I'm not the uber "googler" I thought I was.
-
John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
-
Contact:
Post
by John Adams » Sun Dec 07, 2008 11:09 am
Taught you everything I know!!

Cool, now that you can compile too, we can gang up and make LE's life even more meaningful.
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Dec 07, 2008 11:11 am
Poor LE.
-
Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Post
by Zcoretri » Sun Dec 07, 2008 3:09 pm
Been compiling my own exe's for awhile. Using VC++ express 2008 though.
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Mon Dec 08, 2008 2:49 am
Ok I'm getting past a lot of my old issues thanks to you guys and John, but now I'm running into this. I'm trying to compile debug.
Code: Select all
Error 1 error LNK2005: _malloc already defined in LIBCMTD.lib(dbgheap.obj) MSVCRT.lib
Error 2 error LNK2005: _free already defined in LIBCMTD.lib(dbgheap.obj) MSVCRT.lib
Error 3 error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) MSVCRT.lib
Error 4 error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) MSVCRT.lib
Warning 5 warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library World
Error 6 fatal error LNK1169: one or more multiply defined symbols found c:\Documents and Settings\Scott\Desktop\EQ2Emu Source\build\EQ2WorldDebug.exe 1
I tried to add MSVCRT into the ignored libraries just like how release has it, but ended up getting a whole bunch of errors. Any takers?
Who is online
Users browsing this forum: No registered users and 0 guests