bignsyd / gqe

Automatically exported from code.google.com/p/gqe
MIT License
0 stars 0 forks source link

strcasecmp #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to compile with mingw32, I am getting an error of strcasecmp not 
being defined in this scope. I looked in string.h and it *is* there, so I am 
not sure where the problem is.

Original issue reported on code.google.com by BMBurst...@gmail.com on 12 Dec 2011 at 6:28

GoogleCodeExporter commented 8 years ago
I found the problem. CMake was adding -ansi to the makefile (in 
cmake/Config.cmake), which was disabling all the non-ansi functions, including 
stricmp and under all it's various names.

Original comment by BMBurst...@gmail.com on 13 Dec 2011 at 6:20

GoogleCodeExporter commented 8 years ago
You are correct, I came across this as well in my testing, but my semester has 
kept me too busy to fix it.  I'll fix this as soon as my finals are finished 
(they end this week) and I get internet access at my home (23rd Dec).

Original comment by RyanLind...@gmail.com on 13 Dec 2011 at 7:31

GoogleCodeExporter commented 8 years ago
I already fixed it in my copy. Here it is (it involves fixing 3 lines. It may 
be quicker to do this yourself then use mine)

Original comment by BMBurst...@gmail.com on 13 Dec 2011 at 7:35

Attachments:

GoogleCodeExporter commented 8 years ago
This should be fixed now in version 0.12. The fix as you suggested is to remove 
the -ansi flag from GCC compilers.

Original comment by RyanLind...@gmail.com on 29 Jan 2012 at 3:56