Cuberite Forum
[FIXED] rev 329-332: can't compile on linux - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: [FIXED] rev 329-332: can't compile on linux (/thread-367.html)



[FIXED] rev 329-332: can't compile on linux - tbar - 02-28-2012

When compiling rev 329-332 I get the following error:

Code:
source/cEntity.cpp: In member function âvoid cEntity::Destroy()â:
source/cEntity.cpp:181:85: error: no matching function for call to âcWorld::BroadcastToChunk(int&, int&, int&, cPacket_DestroyEntity)â
source/cEntity.cpp:181:85: note: candidate is:
source/cWorld.h:63:7: note: void cWorld::BroadcastToChunk(int, int, int, cPacket&, cClientHandle*)
source/cWorld.h:63:7: note:   no known conversion for argument 4 from âcPacket_DestroyEntityâ to âcPacket&â
make: *** [build/debug/source/cEntity.o] Error 1

I don't understand why the compile-error only happens on Linux (I assume the devs has compiled for Windows just fine) as the changed code in r329 doesn't seem OS-dependent. Am I missing something?


RE: rev 329-332: can't compile on linux - xoft - 02-28-2012

Fixed in rev 333. Seems we were using a feature that GCC didn't support, by accident.