The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Zrie on May 19, 2008, 04:24:16 pm



Title: 2 errors on MSVC 05 compile
Post by: Zrie on May 19, 2008, 04:24:16 pm
Hey, there.  Back once again.  Has anyone else run into problems compiling the last 10 builds or so with MVSC 05?  I'm getting 2 errors stopping the compilation from module "resinit.c" :

483 error C2275: 'CharHashTable_HashTable' : illegal use of this type as an expression
484 error C2065: 'map' : undeclared unidentifier

If anyone has seen this, let me know.

If it's just another issue with MSVC, then I'm just going to go the mingw route from now on.  Too many problems.


Title: Re: 2 errors on MSVC 05 compile
Post by: meep-eep on May 19, 2008, 05:51:29 pm
483? Is that supposed to be a line number? Because my resinit.c only contains 234 lines.
Could there have been a merge conflict?


Title: Re: 2 errors on MSVC 05 compile
Post by: Zrie on May 19, 2008, 08:17:52 pm
my apologies - I should have included line numbers.  I think the first numbers are the error/warning count.  The line that MVSC pointed to was 232.


Title: Re: 2 errors on MSVC 05 compile
Post by: Michael Martin on May 19, 2008, 11:03:41 pm
We've only ever done our own Windows-native builds on MSVC6 or recent versions of Visual Studio Express.  That said, if that's the *only* place you're getting the error, it sounds like some header is out of date.  This is particularly suspicious since a failure to find the "map" field in ResourceIndex should break *everyone*.

Does VS05 do precompiled headers? If so, does a Clean All/Rebuild All make it go away?


After a more thorough check by the rest of coredev, this is due to some C99-isms creeping in, and should be fixed in the next snapshot.