Closed aditiapratama closed 11 years ago
Hi,
could you add the version of g++ you are using (assuming you use gcc on linux) g++ --version
Thanks !
here's my g++ version
g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
Indeed we need to add
include
in this file. I'll add it in a quick fix : hold on !
Could you try to add the following line:
in /home/aditia/git/duke/src/duke/engine/ColorSpace.cpp just before
That should fix this issue with gcc 4.7. I'll make a patch later if this works. Thanks.
C
you were too fast Guillaume :)
Should be ok now @aditiapratama : ) If you can check it for me
now I've got another issue, compiling OK but then ...
make
make[1]: Entering directory `/home/aditia/git/duke/build'
make[2]: Entering directory `/home/aditia/git/duke/build'
make[3]: Entering directory `/home/aditia/git/duke/build'
make[3]: Leaving directory `/home/aditia/git/duke/build'
[ 24%] Built target glfw
make[3]: Entering directory `/home/aditia/git/duke/build'
make[3]: Leaving directory `/home/aditia/git/duke/build'
make[3]: Entering directory `/home/aditia/git/duke/build'
[ 26%] Generating HTML documentation
make[3]: Leaving directory `/home/aditia/git/duke/build'
[ 26%] Built target docs
make[3]: Entering directory `/home/aditia/git/duke/build'
make[3]: Leaving directory `/home/aditia/git/duke/build'
[ 93%] Built target duke_core
make[3]: Entering directory `/home/aditia/git/duke/build'
make[3]: Leaving directory `/home/aditia/git/duke/build'
make[3]: Entering directory `/home/aditia/git/duke/build'
Linking CXX executable duke
libduke_core.a(Benchmark.cpp.o):Benchmark.cpp:function duke::benchmark(): error: undefined reference to 'std::chrono::steady_clock::now()'
libduke_core.a(Benchmark.cpp.o):Benchmark.cpp:function duke::benchmark(): error: undefined reference to 'std::chrono::steady_clock::now()'
libduke_core.a(DukeMainWindow.cpp.o):DukeMainWindow.cpp:function duke::DukeMainWindow::run(): error: undefined reference to 'std::chrono::steady_clock::now()'
libduke_core.a(DukeMainWindow.cpp.o):DukeMainWindow.cpp:function duke::DukeMainWindow::run(): error: undefined reference to 'std::chrono::steady_clock::now()'
collect2: error: ld returned 1 exit status
make[3]: *** [src/duke/duke] Error 1
make[3]: Leaving directory `/home/aditia/git/duke/build'
make[2]: *** [src/duke/CMakeFiles/duke.dir/all] Error 2
make[2]: Leaving directory `/home/aditia/git/duke/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/aditia/git/duke/build'
make: *** [all] Error 2
Here's the LOG when I tried to compile duke