Le 28/12/2013 19:53, arius a écrit : > Hello, > > during the compilation of KiCAD revno 4578 I've got the following error > message from the compiler: > > [ 40%] Building CXX object common/CMakeFiles/common.dir/base_struct.cpp.obj > In file included from > c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\gthr-default.h:35:0, > from > c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\gthr.h:148, > from > c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ext\atomicity.h:33, > from > c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:39, > from > c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:52, > from C:/MinGW/msys/1.0/include/wx-3.0/wx/stringimpl.h:66, > from C:/MinGW/msys/1.0/include/wx-3.0/wx/unichar.h:15, > from C:/MinGW/msys/1.0/include/wx-3.0/wx/strvararg.h:22, > from C:/MinGW/msys/1.0/include/wx-3.0/wx/string.h:46, > from C:/MinGW/msys/1.0/include/wx-3.0/wx/memory.h:15, > from C:/MinGW/msys/1.0/include/wx-3.0/wx/object.h:19, > from C:/MinGW/msys/1.0/include/wx-3.0/wx/wx.h:15, > from > d:/Development/workspace-kicad/kicad/include/fctsys.h:7, > from > d:/Development/workspace-kicad/kicad/common/base_struct.cpp:30: > d:/Development/workspace-kicad/kicad/include/kicad_string.h:181:58: > error: expected unqualified-id before 'char' > extern "C" char* strtok_r( char* str, const char* delim, char** nextp ); > ^ > d:/Development/workspace-kicad/kicad/include/kicad_string.h:181:58: > error: expected ')' before 'char' > d:/Development/workspace-kicad/kicad/include/kicad_string.h:181:58: > error: expected ')' before 'char' > d:/Development/workspace-kicad/kicad/include/kicad_string.h:181:58: > error: expected initializer before 'char' > make[2]: *** [common/CMakeFiles/common.dir/base_struct.cpp.obj] Error 1 > make[1]: *** [common/CMakeFiles/common.dir/all] Error 2 > make: *** [all] Error 2 > > Does anyone know what might be the problem or how to fix it? > > I've called cmake as follows: cmake -G "MSYS Makefiles" > -DCMAKE_BUILD_TYPE=Release -DKICAD_TESTING_VERSION=ON > > Regards, > Arius
tdm_gcc_32 is a good compiler, and I use it, but has a broken strtok_r definition. Edit tdm_gcc_32/include/pthread.h, and comment the line 457 which defines strtok_r -- Jean-Pierre CHARRAS _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

