Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2005, 12:32 AM
sonicintuition
Hill Giant
 
Join Date: Jan 2005
Posts: 124
Default New CVS dump Windows compile issues

Greetings,

I downloaded the newest CVS dump of EQemu and was really excited to see that Lethal updated the project so that it would compile on windows. Unfortunately, it still refuses to compile, but this time for different reasons. EQmemshare.dll compiled fine with one warning. Cool. My problems lie in attempting compiles of world.exe and zone.exe (w/perl). I am using VS.NET 2K3.

When compiling world.exe, I get about 32 errors all having to do with EQnetwork.cpp. They are to the likes of "suchandsuch is not a member of EQstream". I figured I might just be missing a few files from the project, so I added the EQstream.cpp/.h because they weren't included - did not solve the problem. Is there some other files I need to add and if so, what?

When compiling zone.exe I get a whopping 435 errors. Many also had to do with the EQstream thing like above, and also most are (for example) like this:
Quote:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinSock2.h(1875): error C2375: 'ntohl' : redefinition; different linkage
I am assuming that I need to add something to the project, but I'm not sure and really confused. I've never had a problem with that type of error when compiling zone.exe in the past.

I've searched on this for a while and tried various things but nothing is working. I really hope its as simple as including files to the project. Any *helpful, polite* insight would be greatly appreciated. Thanks for your time.

Regards,
SI
Reply With Quote
  #2  
Old 05-02-2005, 07:37 AM
Facet42
Fire Beetle
 
Join Date: Jul 2004
Posts: 25
Default

You need to remove the EQNetwork.cpp file from the project as it has been moved into the EQStream.cpp file if I remember correctly.
__________________
This signature left intentionally blank.
Reply With Quote
  #3  
Old 05-02-2005, 07:58 AM
sonicintuition
Hill Giant
 
Join Date: Jan 2005
Posts: 124
Default

Wow, thats it huh? Sheesh. Thanks a bunch. I'll edit this post if it works - just in case others run into the same issue.

EDIT: Okay, your solution did take care of the EQstream errors in both world and zone compiles, however now I get a whole slew of other errors, all dealing with WinSock2.h or WinSock.h - never had this problem before when compiling w/ VS.NET 2003, what gives? Anyone?

Regards,
SI

Last edited by sonicintuition; 05-02-2005 at 04:17 PM..
Reply With Quote
  #4  
Old 05-13-2005, 02:27 AM
Sakrateri's Avatar
Sakrateri
Dragon
 
Join Date: Mar 2004
Location: England
Posts: 776
Default

by remove eqnetwork.cpp do you mean just delete the file?
__________________
KhepriGames

Game Gallery

My Forums

Reply With Quote
  #5  
Old 05-13-2005, 06:49 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

No, you have to remove it from the project.
Reply With Quote
  #6  
Old 05-14-2005, 02:09 AM
Sarepean
Discordant
 
Join Date: Sep 2004
Posts: 253
Default

Every single winsock2.h error I receive in ANY compile comes from 5 or 6 files and they all start with this "perl_". For example, "perl_client" and stuff like that.

I think I've found the reason why those error out, but I can't find a way to fix it. The devs say that it was fixed in the development branch, but even that compiles with the same errors I was getting before. =/

Here's the post (I can't find quote, otherwise I'd quote it)

-----------------------------------------------------------------

After some code inspection, I found out that both Apache-1.3.20 (os.h) and
mod_perl-1.26 (mod_perl.h) include <winsock2.h> BUT Perl-5.6.1
(/usr/perl/lib/CORE/sys/socket.h) includes <winsock.h>
As the result, compilation failed because of these 2 conflicting header file
inclusion. The include hierachy looks something like this:

Icon.h -> mod_perl.h -> winsock2.h and perl.h
perl.h -> sys/socket.h (in /perl/lib/CORE) -> winsock.h!!

In general, any mod_perl Apache modules (eg: Apache::Icon and FileMan) with C code would fail to compile due to the exact reason.

Any suggestions on how to get around this?

---------------------------------------------------------------------


None of my other files have a problem with any winsock2.h or winsock.h complications. The way I understand it is that to fix this, I would either have to #define WIN_LEAN_AND_MEAN or have the #include winsock2.h call before any calls to icon.h or perl.h

I've installed my platform SDK as recommended by another thread and that didn't do anything for my problem. =/ I'm also running the latest service pack for Visual Studio 2003 .NET Pro.

Please Advise.
-Sarepean
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 09:04 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