Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Building CLIPS for Windows CE

Help
2010-03-07
2012-11-23
  • Daniel Gerzo
    Daniel Gerzo
    2010-03-07

    Hello,

    I am trying to build CLIPS for Windows CE with CeGCC (http://cegcc.sourceforge.net/). I came across the topic at https://sourceforge.net/projects/clipsrules/forums/forum/776946/topic/3460878. So I tried to build it as simply as (I am building on OS X Snow Leopard):

    bash-3.2$ arm-mingw32ce-gcc -DGENERIC=1 -o clips *.c -lm

    However I am getting the following errors:

    bash-3.2$ arm-mingw32ce-gcc -DGENERIC=1 -o clips *.c -lm
    In file included from iofun.c:45:
    /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/include/locale.h:13:26: error: no include path in which to search for locale.h
    iofun.c: In function 'IOFunctionDefinitions':
    iofun.c:114: error: 'LC_ALL' undeclared (first use in this function)
    iofun.c:114: error: (Each undeclared identifier is reported only once
    iofun.c:114: error: for each function it appears in.)
    iofun.c:114: warning: passing argument 2 of 'EnvAddSymbol' makes pointer from integer without a cast
    symbol.h:258: note: expected 'char *' but argument is of type 'int'
    iofun.c: In function 'PrintFormatFlag':
    iofun.c:1072: error: 'LC_NUMERIC' undeclared (first use in this function)
    iofun.c:1072: warning: passing argument 2 of 'EnvAddSymbol' makes pointer from integer without a cast
    symbol.h:258: note: expected 'char *' but argument is of type 'int'
    iofun.c:1090: warning: passing argument 2 of 'EnvAddSymbol' makes pointer from integer without a cast
    symbol.h:258: note: expected 'char *' but argument is of type 'int'
    iofun.c: In function 'ReadNumber':
    iofun.c:1480: error: 'LC_NUMERIC' undeclared (first use in this function)
    iofun.c:1480: warning: passing argument 2 of 'EnvAddSymbol' makes pointer from integer without a cast
    symbol.h:258: note: expected 'char *' but argument is of type 'int'
    In file included from scanner.c:33:
    /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/include/errno.h:12:25: error: no include path in which to search for errno.h
    scanner.c: In function 'ScanNumber':
    scanner.c:726: error: 'errno' undeclared (first use in this function)
    scanner.c:726: error: (Each undeclared identifier is reported only once
    scanner.c:726: error: for each function it appears in.)
    
     
  • Gary Riley
    Gary Riley
    2010-03-07

    These are the relevant errors:

       error: no include path in which to search for locale.h
       error: no include path in which to search for errno.h

    Find where the compiler has them located and include that directory using the -I option

     
  • Daniel Gerzo
    Daniel Gerzo
    2010-03-08

    just for the record for someone else:

    CLIPS doesn't compile with arm-mingw32ce-gcc. However, I was able to compile SVN version of CLIPS with the following command:
    arm-cegcc-gcc -g -D_WIN32_IE=0x0400 -static -static-libgcc -DGENERIC=1 -o clips.exe *.c -lm

    It also seems to be running successfuly on WinCE 6.0 \o/