The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: dczanik on November 19, 2010, 09:49:24 am



Title: error C2375: 'vsnprintf' : redefinition; different linkage
Post by: dczanik on November 19, 2010, 09:49:24 am
While attempting to compile the  latest snapshot (uqm-svn-03551-20100711.0400) I run into some errors.   I get a bunch of C2375 errors.

stdio.h(333) : error C2375: 'vsnprintf' : redefinition; different linkage c:\uqm-svn-03549-20100702.2000\src\port.h(165) : see declaration of 'vsnprintf'

Any ideas? Google hasn't helped me solve the issue, and neither has it helped me to understand what the error message is really saying.  :-\   Any help would be greatly appreciated :)




Title: Re: error C2375: 'vsnprintf' : redefinition; different linkage
Post by: Novus on November 19, 2010, 03:15:50 pm
Looks like one of these (http://msdn.microsoft.com/en-us/library/5k6kw95a%28VS.71%29.aspx). Basically, port.h in UQM and stdio.h are defining different versions of vsnprintf. As a workaround, try removing the definition of vsnprintf in port.h.

I found a similar thread (http://forum.uqm.stack.nl/index.php?topic=4353.0).


Title: Re: error C2375: 'vsnprintf' : redefinition; different linkage
Post by: dczanik on November 24, 2010, 07:16:25 am
Just wanted to update. Thanks Novus that worked.  None of the previous suggestions in the threads worked.

I've got my Urquan Masters HD game running the latest code at 2 and 4 times the original graphics.  Most of the graphics are tiny since I haven't changed them just yet, but what I've done so far is looking really sweet. Seeing it at 1280x960 (without resizing filters) is really neat. Maybe one day a programmer will join my team and help with getting the thing to run in fullscreen widescreen graphics. Again, thanks a lot!