idmillington / aicore

Now obsolete code accompanying the first (2005) edition of the book "Artificial Intelligence for Games"
MIT License
535 stars 159 forks source link

Corrected issues when compiling on Linux #7

Open LucasCampos opened 11 years ago

LucasCampos commented 11 years ago

There were two problems when compiling aicore

i) NULL not defined ii) Programs were not being compiled with -lrt.

The first issue was solved by adding #include to aicore/include/aicore/aicore.h. The second issed was solved by adding

IF(UNIX) target_link_libraries(aicore -lrt) ENDIF(UNIX)

to aicore/build/CMakeLists.txt.

These errors were found and solved using Ubuntu 12.04, g++ 4.6.3 and cmake 2.8.7