ivansafrin/Polycode

Linux compile Error

m241dan opened this issue · 2 comments

Getting this error on a linux compile:

In file included from ../../include/Polycode.h:108:0,
from ../../include/polycode/bindings/lua/PolycodeLua.h:2,
from ../../src/core/PolyResourceManager.cpp:35:
../../include/polycode/core/PolySDLCore.h:40:42: error: invalid use of incomplete type ‘class Polycode::CoreMutex’
class _PolyExport SDLCoreMutex : public CoreMutex {
^
In file included from ../../include/Polycode.h:71:0,
from ../../include/polycode/bindings/lua/PolycodeLua.h:2,
from ../../src/core/PolyResourceManager.cpp:35:
../../include/polycode/core/PolySoundManager.h:38:11: note: forward declaration of ‘class Polycode::CoreMutex’
class CoreMutex;
^
make: *** [../../src/core/PolyResourceManager.o] Error 1

This is on goodbye_cmake, right?
I made a PR that fixes it, but it's yet to be merged.

For now, you could grab my branch here: https://github.com/sanghakchun/Polycode/tree/linux-build-fix

Ya, gooodbye_cmake. I'll check it out, thanks!