MinGW & undefined _stricmp

Create issue
Issue #13 resolved
Aleksander Nitecki created an issue

glLoadGen 0.2.1, MinGW + MSYS. Commandline:

lua LoadGen.lua core_3_3 -style=pointer_cpp

After correcting issue #12:

"'_stricmp' was not declared in this scope"

Comments (9)

  1. Jason McKesson repo owner

    I'm not able to reproduce this. My MingW install is a bit old, and I'm using Code::Blocks to build. Can you give me more information, such as the command line(s) you use to build your code?

  2. Jason McKesson repo owner

    I've done something which may fix this. If you could download the 0.2 branch (click on "branches" in the downloads page) and take a look, I'd appreciate it.

    Note that it may also resolve Issue #12. I got rid of all tests for WIN32 in favor of _WIN32.

  3. Aleksander Nitecki reporter

    I'm using G++ 4.7. I figured out that this and #12 occurs only when -std=c++11 flag is passed. Without it, WIN32 and _stricmp is defined. Changing it to gnu++11 also solves both problems, so now I think it's portability isue, but not critical.

  4. Aleksander Nitecki reporter

    (Sorry, forgot to test it before). Nope, #12 is now fixed, but strcasecmp is still not declared.

  5. Jason McKesson repo owner

    OK, I've checked in something that gets rid of the case-insensitive comparisons. It was old stuff that I copied from the GL SDK and is unnecessary here. Extension names have to be named correctly, even in case, so there's no point in a case-insensitive string compare.

    It's on the 0.2 branch. Good luck.

  6. Log in to comment