scons: done reading SConscript files.
scons: Building targets ...
g++ -o build\src\PowderToySDL.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -O2 -funsafe-loop-optimizations -DLUA_R_INCL -DWIN -D_WIN32_WINNT=0x0501 -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\PowderToySDL.cpp
=====
In file included from src\client/requestbroker/RequestBroker.h:7:0,
from src\client/Client.h:16,
from src\PowderToySDL.cpp:42:
c:\mingw\include\pthread.h:320:8: error: redefinition of 'struct timespec'
struct timespec {
^
In file included from c:\mingw\include\time.h:53:0,
from src\PowderToySDL.cpp:5:
c:\mingw\include\parts\time.h:105:8: error: previous definition of 'struct timespec'
struct timespec
^
I'm trying to compile TPT but it keep getting that error and i'm using scons.py to compile not visual studio
thank you :)
I have tried to fix it I downloaded it then compiled it I didn't change anything I even reinstalled mingw, python and scons I'll keep trying to fix it
Is there a fix?
I tryed visual studio too but I tryed to compile and got this error
1>c1xx : fatal error C1083: Cannot open source file: 'src\cajun\elements.cpp': No such file or directory
reader.cpp
1>c1xx : fatal error C1083: Cannot open source file: 'src\cajun\reader.cpp': No such file or directory
writer.cpp
1>c1xx : fatal error C1083: Cannot open source file: 'src\cajun\writer.cpp': No such file or directory
Misc.cpp
1>src\Misc.cpp(276): error C3861: 'min': identifier not found
1>src\Misc.cpp(277): error C3861: 'min': identifier not found
1>src\Misc.cpp(278): error C3861: 'max': identifier not found
1>src\Misc.cpp(279): error C3861: 'max': identifier not found
Simulation.cpp
1>src\simulation\Simulation.cpp(4047): error C3861: 'max': identifier not found