AI Zone Admin Forum Add your forum
Problem compiling under Linux
 
 

When I try to compile under Redhat Linux I get the following error:

g++ -lpthread -lrt -funsigned-char src/*.cpp -O2 -oLinuxChatScript

src/dictionarySystem.cpp: In function ‘WORDENTRY* StoreWord(char*, uint64)’:
src/dictionarySystem.cpp:506: warning: comparison is always false due to limited range of data type
src/mainSystem.cpp:1: error: stray ‘\357’ in program
src/mainSystem.cpp:1: error: stray ‘\273’ in program
src/mainSystem.cpp:1: error: stray ‘\277’ in program
src/scriptCompile.cpp: In function ‘MEANING AlreadyInferred(MEANING)’:
src/scriptCompile.cpp:2810: warning: converting to non-pointer type ‘MEANING’ from NULL

The binary is not built.  Thanks in advance!

 

 
  [ # 1 ]

Since I built under Linux, I’m not sure what happened unless stuff ended up in mainsystem.cpp at line one by bad editing.
Clearly there is something wrong with line 1 of that file. You should be able to FIX it yourself.

the first lines should be:

// mainSystem.cpp - main startup and overall control functions

#include “common.h”


As for scriptCompiler, you can remove the warning (I did so already previously) by changing that value to 0 instead of NULL.

Similarly i have already fixed the wordentry warning message, but it won’t harm you to ignore it for now.

 

 
 
  login or register to react