Compiling on Linux
#9
(10-09-2012, 03:27 PM)konfiot Wrote:
(10-09-2012, 12:28 PM)The Walking Glitch Wrote:
(10-06-2012, 06:02 PM)konfiot Wrote: You can add the -fpermissive flag to compile it, it worked for me, but now I have bugs, and the server crashes when someone respawns (see Here)

I tried that, and I still came upon the error. I meant to upload the patched cryptopp files the other night, but forgot about it in the midst of real life. I'm going to try downloading the latest revision.
Arf, Yeah the last rev is fixing this error, but I got an other error, which I fixed also with with a -fpermissive flag (this flag is kinda magicBig Grin) Hope it will work for you.
What's your hardware and OS ?
Phenom II 1090T @ 4.4Ghz; 16GB of RAM; 120GB SSD boot drive; 4 2TB drives, RAID 0+1; CFed 7870's OCed to 1200MHz. Fedora 17 xfce. And yes, the -fpermissive flag does work magic sometimes.
Code:
make release=1 CFLAGS="-fpermissive"
/usr/bin/g++ -s -O3 -DNDEBUG -c -I. -Isource -Isource/md5 -IWebServer -Isource/items -Isource/blocks -Itolua++-1.0.93/src/lib -Ilua-5.1.4/src -Izlib-1.2.7 -IiniFile -Itolua++-1.0.93/include -Ijsoncpp-src-0.5.0/include -Ijsoncpp-src-0.5.0/src/lib_json -Isquirrel_3_0_1_stable/include -Isquirrel_3_0_1_stable -Isquirrel_3_0_1_stable/sqrat source/Server.cpp -o build/release/source/Server.o
In file included from source/Protocol/ProtocolRecognizer.h:13:0,
                 from source/Server.cpp:23:
source/Protocol/Protocol.h: In member function ‘void cProtocol::WriteVectorI(const Vector3i&)’:
source/Protocol/Protocol.h:163:22: error: ‘WriteInt’ was not declared in this scope
make: *** [build/release/source/Server.o] Error 1

Still refuses to compile even with -fpermissive set, as you can see. I don't have the time to fix it myself right now.
Reply
Thanks given by:


Messages In This Thread
Compiling on Linux - by The Walking Glitch - 10-03-2012, 09:28 AM
RE: Compiling on Linux - by xoft - 10-03-2012, 04:31 PM
RE: Compiling on Linux - by xoft - 10-04-2012, 06:37 AM
RE: Compiling on Linux - by The Walking Glitch - 10-04-2012, 08:52 AM
RE: Compiling on Linux - by The Walking Glitch - 10-04-2012, 01:22 PM
RE: Compiling on Linux - by konfiot - 10-06-2012, 06:02 PM
RE: Compiling on Linux - by The Walking Glitch - 10-09-2012, 12:28 PM
RE: Compiling on Linux - by konfiot - 10-09-2012, 03:27 PM
RE: Compiling on Linux - by The Walking Glitch - 10-27-2012, 07:20 PM
RE: Compiling on Linux - by xoft - 10-27-2012, 08:17 PM
RE: Compiling on Linux - by ThuGie - 10-28-2012, 03:27 AM
RE: Compiling on Linux - by The Walking Glitch - 10-30-2012, 10:43 PM
RE: Compiling on Linux - by xoft - 10-31-2012, 01:21 AM
RE: Compiling on Linux - by The Walking Glitch - 10-31-2012, 11:19 AM
RE: Compiling on Linux - by ThuGie - 10-31-2012, 12:27 PM
RE: Compiling on Linux - by Miz - 11-03-2012, 04:01 AM
RE: Compiling on Linux - by xoft - 11-03-2012, 09:15 AM



Users browsing this thread: 1 Guest(s)