Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Tools

Development::Tools 3rd Party Tools for EQEMu (DB management tools, front ends, etc...)

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2007, 12:28 AM
a_troll_01's Avatar
a_troll_01
Fire Beetle
 
Join Date: Nov 2007
Posts: 12
Default Compiler question

I haven't done any C/C++ development in years and so I'm looking for a good free or open source Windows compiler that can be used to build EMU. Any suggestions?

BTW - I downloaded the Microsoft 2008 Express compiler and it puked all over a redef of vsprintf. I really don't want to have to fiddle with #define statements each time there is a new EMU release.

Thanks
Reply With Quote
  #2  
Old 12-27-2007, 05:03 AM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default

well, since eqemu builds with gcc, you could try installing cygwin (if you dont already have it) and maybe building using its gcc. not sure if it will explode, but worthy of an attempt if you're sold on windows.

== sfisque
Reply With Quote
  #3  
Old 12-28-2007, 02:12 AM
a_troll_01's Avatar
a_troll_01
Fire Beetle
 
Join Date: Nov 2007
Posts: 12
Default

I tracked down the issue and it appears to be one of symantics. The EMU projects references the functions _snprintf & _vsnprintf and MSC uses _snprintf_c & _vsnprintf_c.

So I made the following change:
#ifdef WIN32
#ifdef _MSC_VER
#define snprintf _snprintf_c
#define vsnprintf _vsnprintf_c
#else
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif

I do have a question about the project structure. Why do we redefine snprintf & vsnprintf in the source so many times? Seems to me it would have be more appropriate to define it once in types.h and then include types.h where needed.
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 02:05 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3