Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2007, 07:01 AM
WorldZone
Fire Beetle
 
Join Date: Oct 2007
Posts: 2
Default VS 2008 _vsnprintf declaration conflict

Hello, I am trying to compile zone with VS 2008 Express for the first time, and ran into the following error:

Code:
Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(358) : error C3163:
'_vsnprintf': attributes inconsistent with previous declaration
        C:\Program Files\Microsoft Visual Studio
9.0\VC\include\stdio.h(350) : see declaration of '_vsnprintf'
I can't find this previous declaration that is causing a conflict!


Any ideas?

Thanks for any help!
Reply With Quote
  #2  
Old 12-17-2007, 09:54 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

I was trying to get EQEmu to compile at the weekend with 2008 express. To get around this particular problem, based on the info in this post:

http://forums.microsoft.com/MSDN/Sho...31152&SiteID=1

I did a Find/Replace in files and replaced all occurrences of:

#define vsnprintf _vsnprintf

with nothing, i.e. delete all occurrences of that #define.

It seems the vsnprintf function was called _vsnprintf in previous versions of Visual C++, hence the need for that define.
Reply With Quote
  #3  
Old 12-18-2007, 09:52 AM
WorldZone
Fire Beetle
 
Join Date: Oct 2007
Posts: 2
Default

Thanks, Derision. I did a similar thing. In types.h I commented out that line and it compiled. However, it doesn't run properly, so I've reverted back to 2005 for now.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:19 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3