Travis Desell wrote, On 10/19/10 2:26 AM:
> I've been following the instructions on compiling the boinc libraries using 
> MinGW from here:
>
> http://boinc.berkeley.edu/trac/wiki/CompileApp
>
> But I'm getting the same error using both Dev C++ (with a modified version of 
> the SETI .dev file) and in MinGW using make -f Makefile.mingw:

What version of the MinGW g++ are you using (try 'g++ --version')?

I tried to fix this in trunk at least for gcc-4.4.1, but not in 
server_stable.

Bernd

> $ make -f Makefile.mingw
> g++ -c ../api/boinc_api.cpp -o boinc_api.o  -I".." -I"../db" -I"../lib" 
> -I"../ap
> i" -I"../zip" -I"../win_build" -D__DEBUG__ -gstabs -g3 --include ../version.h 
> -D
> EINSTEINATHOME_CROSS_BUILD -DMINGW_WIN32 -DWIN32 -D_WIN32 
> -D_WIN32_WINDOWS=0x041
> 0 -D_MT -DNDEBUG -D_WINDOWS  -DBOINC -DNODB -D_CONSOLE -mtune=pentium-m 
> -fexcept
> ions -march=i386 -O2
> In file included from ../api/boinc_api.cpp:59:0:
> ../lib/boinc_win.h:252:0: warning: "SetClassLongPtr" redefined
> c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4471:0: 
> note
> : this is the location of the previous definition
> ../lib/boinc_win.h:253:0: warning: "GCLP_HICON" redefined
> c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:623:0: 
> note:
>   this is the location of the previous definition
>   ../lib/boinc_win.h:254:0: warning: "GCLP_HICONSM" redefined
>   c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:626:0: 
> note:
>    this is the location of the previous definition
>    In file included from ../api/boinc_api.cpp:88:0:
>    ../lib/str_replace.h: In function 'int strcasecmp(const char*, const 
> char*)':
>    ../lib/str_replace.h:40:12: error: redefinition of 'int strcasecmp(const 
> char*,
>    const char*)'
>    c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/string.h:98:1: 
> error:
>    'int strcasecmp(const char*, const char*)' previously defined here
>    ../api/boinc_api.cpp: In member function 'void GRAPHICS_APP::run(char*)':
>    ../api/boinc_api.cpp:833:19: warning: deprecated conversion from string 
> constant
>     to 'char*'
>     ../api/boinc_api.cpp:835:23: warning: deprecated conversion from string 
> constant
>      to 'char*'
>      make: *** [boinc_api.o] Error 1
>
> Any idea what the problem is or what I'm doing wrong?
>
> ----------------------------------------------------------------------------------------------------------
> Travis Desell
> <deselt @ cs.rpi.edu>
> 1-518-867-1054
> Worldwide Computing Laboratory ( http://wcl.cs.rpi.edu/ )
> milky...@home ( http://milkyway.cs.rpi.edu/ )
> Rensselaer Polytechnic Institute, 110 8th Street, Troy NY 12180, USA
> ----------------------------------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> boinc_projects mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_projects
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to