[Gambas-devel] Porting Gambas to cygwin

Nigel Gerrard nigel.dh.gerrard at ...176...
Wed Apr 30 14:35:33 CEST 2014


I have now resolved the issue with the following when compiling gb.sdl
in cygwin:

> In file included from /usr/include/sys/types.h:20:0, > from
../gambas.h:30, > from Cconst.cpp:25: > ../gambas.h:1213:22: error:
expected initializer before '.' token > #define strcasecmp GB.StrCaseCmp >
^ > ../gambas.h:1214:23: error: expected initializer before '.' token >
#define strncasecmp GB.StrNCaseCmp > ^ It comes down to the order of the
header definitions e.g. where gambas.h is declared before any of the SDL
headers that contain STD_stdinc.h (and thus <strings.h>). In this case my
assumption is that the prepocessor incorporates all the includes and then
redefines strcasecmp etc. including the definitions picked up from the
standard header. The question then is why does this cause a problem under
cygwin and not Linux.

Regards

Nigel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20140430/878bdd17/attachment.html>


More information about the Devel mailing list