Page 1 of 1

how to build codelite on windows?

Posted: Wed May 06, 2015 11:01 am
by xuiv

Code: Select all

C:/Users/Young/AppData/Local/CodeLite/TDM-GCC-64/bin/g++.exe  -include ../PCH/precompiled_header_release.h  -c  "C:/Users/Young/Downloads/codelite-7.0/CodeLite/cl_config.cpp" -O2 -std=c++11 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/Users/Young/AppData/Local/CodeLite/wxWidgets-3.1/lib/gcc_dll/mswu -IC:/Users/Young/AppData/Local/CodeLite/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11  -Winvalid-pch -DWXMAKINGDLL_CL -DWXUSINGDLLL_WXSQLITE3 -DUSE_SFTP=1  -o Win_x64_Release/cl_config.cpp.o -I. -I. -I./include -I../sdk/wxsqlite3/include -I../sdk/codelite_indexer/network -I../PCH -I../sdk/libssh/include
C:/Users/Young/Downloads/codelite-7.0/CodeLite/cJSON.cpp: In function 'char* print_number(cJSON*)':
C:/Users/Young/Downloads/codelite-7.0/CodeLite/cJSON.cpp:178:46: error: 'DBL_EPSILON' was not declared in this scope
if(fabs(((double)item->valueint) - d) <= DBL_EPSILON && d <= INT_MAX && d >= INT_MIN) {
^
mingw32-make.exe[1]: *** [Win_x64_Release/cJSON.cpp.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
libCodeLite.mk:768: recipe for target 'Win_x64_Release/cJSON.cpp.o' failed

Re: how to build codelite on windows?

Posted: Wed May 06, 2015 11:18 am
by eranif
Strange, DBL_EPSILON is defined in float.h (it compiles fine here...)
Which version of MinGW are you using?

Eran