eqemu won't compile on vs.net 2003
Do you guys already know that the emulator won't compile on VS.NET 2003? Since you're still using the old C style includes for standard headers (which were deprecated in VS.NET, and now are fully removed in VS.NET 2003) it doesn't compile anything.
I don't mind going through the code again like I did lo those many months ago, but I don't want to do it if it's just going to be overlooked again. It's a waste of my time. |
It compiles (it's what I use)
You just get a lot of warnings (which don't affect the executable) |
You get warnings in VS.NET. In the new version, VS.NET 2003 I promise you, it doesn't build. The warnings that you get in VS.NET about deprecated IO headers using C-Style includes mean that Microsoft planned on (and did) take the compatibility for the old include style out of VS.NET 2003.
[/b] |
I can fix, but unfortunately <iostreams> is not part of earlier versions of visual studio (including vs.net 7.0). So I will have to use a precompiler statement to distinguish the versions - anyone know of a #define for VS IDE version? Or of a different way to handle this situation?
|
#include <iostreams>
works in VS 6, VS.NET and VS.NET 2003. It works in gcc too. From what I remember there isn't a file in the include folder named iostreams without the extension in VS6, but the compiler knows how to handle it by adding the extension and namespace declarations. |
What kind of magic did you do to get it to compile? Here's what I see:
Code:
#include <iostreams> |
Nevermind, I figured it out. The documentation says this, so that's why I went with <iostreams>
Code:
useoldio.h |
Ah, my mistake.... for some reason I thought I was running 2003 on my home machine, since I run it on my work machine. Sorry :)
|
No problem. And Merth, glad you got it working.
I've got a rough build of 5.0 dev running as the "Pollo Verde" server. It seems to be working ok except for some minor database problems (i.e. no items) but everything else looks good. |
This has been fixed and will be effective on the next push out to CVS.
|
so I tried to change the includes to #include <iostreams>, and that would give me inc file not found.
and I also tried #include <iostream>, and this will give me tons of errors of cout, cin...etc being unidentified. Any suggestions? |
Change #include <iostream.h> to:
Code:
#include <iostream> |
cool, so that solves that prob.
Now its giving me linkage error when I try to compile zone. Quote:
|
add doors.cpp and doors.h to your project
|
Ah, thanks.
|
All times are GMT -4. The time now is 09:45 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.