Compile errors

Post Reply
forager
Posts: 2
Joined: Mon Jun 15, 2015 10:04 pm

Compile errors

Post by forager » Thu Jul 30, 2015 10:15 pm

getting this error trying to compile on Ubuntu 14.04.2 LTS

Code: Select all

g++ -std=c++1y -DHAVE_CONFIG_H -I. -I./src/common      -DdsUDPSERV   -I/usr//include/luajit-2.0   -I/usr/include/mysql -DBIG_JOINS=1  -fno-strict-aliasing    -g -DNDEBUG  -g -O2 -MT dsgame-ai_general.o -MD -MP -MF .deps/dsgame-ai_general.Tpo -c -o dsgame-ai_general.o `test -f 'src/map/ai/ai_general.cpp' || echo './'`src/map/ai/ai_general.cpp
src/map/ai/ai_general.cpp: In member function âvoid CAIGeneral::SetCurrentSpell(uint16)â:
src/map/ai/ai_general.cpp:289:28: error: âmake_uniqueâ is not a member of âstdâ
                 m_PSpell = std::make_unique<CBlueSpell>(*static_cast<CBlueSpell*>(spell));
                            ^
src/map/ai/ai_general.cpp:289:55: error: expected primary-expression before â>â token
                 m_PSpell = std::make_unique<CBlueSpell>(*static_cast<CBlueSpell*>(spell));
                                                       ^
src/map/ai/ai_general.cpp:293:28: error: âmake_uniqueâ is not a member of âstdâ
                 m_PSpell = std::make_unique<CSpell>(*spell);
                            ^
src/map/ai/ai_general.cpp:293:51: error: expected primary-expression before â>â token
                 m_PSpell = std::make_unique<CSpell>(*spell);
                                                   ^
make: *** [dsgame-ai_general.o] Error 1
any ideas? :)

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Compile errors

Post by kjLotus » Thu Jul 30, 2015 11:02 pm


forager
Posts: 2
Joined: Mon Jun 15, 2015 10:04 pm

Re: Compile errors

Post by forager » Fri Jul 31, 2015 9:51 pm

Brilliant! Thanks! Did not see that post. Many thanks to you! :D

Post Reply