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

Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2004, 09:55 AM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default Compiler problems

before i was going to add changes to the source for my server i wanted to try and compile it. when i tryed to compile EMuShareMeM i get this error when it compiles mmf.h

3 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.h
In file included from MMF.h
1 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
from MMF.cpp
18 C:\EQEmu-0.5.2-Source\common\types.h:40
#error __int64 not supported
MMF.cpp C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
In member function `bool MMF::Open(const char*, unsigned int)':
77 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
`__try' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function
77 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
parse error before `{' token
MMF.cpp C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
At global scope:
126 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
syntax error before `{' token
130 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
ISO C++ forbids declaration of `Close' with no type
131 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
parse error before `return'
134 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
`hMutex' was not declared in this scope
134 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
ISO C++ forbids declaration of `CloseHandle' with no type
134 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
`int CloseHandle' redeclared as different kind of symbol
988 C:\Dev-Cpp\include\winbase.h
previous declaration of `BOOL
136 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
parse error before `return'
MMF.cpp C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
In member function `void MMF::Close()':
308 C:\EQEmu-0.5.2-Source\EMuShareMem\MMF.cpp
`CloseHandle' cannot be used as a function
C:\EQEmu-0.5.2-Source\EMuShareMem\Makefile.win
[Build Error] [MMF.o] Error 1


I am using Dev-C++ might that be a problem?
Reply With Quote
  #2  
Old 01-07-2004, 10:01 AM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default

oh didn't see that no other compilers work with it sorry =/ kinda angers me that i cant compile it in that but oh well =/
Reply With Quote
  #3  
Old 01-07-2004, 06:06 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

If you know Dev-CPP perhaps you can get it to work. The problem is no one was motivated enought to try and track/fix the problems with compiling with it.

All the Dev's have MSVC++ or linux GCC
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #4  
Old 01-08-2004, 12:36 AM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default

still new to the program and im very new to C++ so i wouldn't be able to tell what was wrong if it slapped me in the face.
Reply With Quote
  #5  
Old 01-08-2004, 03:11 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

I understand part of the problem...
Under windows all the #ifdef's are setup for VC++ and windows.
But for Dev-CPP it needs to be mingw and windows. Or basically a mix of the windows and linux compile options.

Like #error __int64 not supported that is causing the first 8 or so lines... it is a programed error inside a #ifdef win32 because of 2 missing defines that are probably set by VC++ But like you I have NO idea if the gcc code or the win32 code is needed (or if both fail) I would imagine the gcc code is needed though.

I also found it matters which version of mingw you use. The latest dev-CPP 4.9.8.5 uses mingw 3.2 but you can install the latest mingw 3.3.1 and it will cause different errors...

I think it would be really good if someone with Dev-CPP and or mingw experience would take a look at it and submit the changes required to compile correctly under mingw.
__________________
Please read the forum rules and look at reacent messages before posting.
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:31 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