Bah, NMAKE in EQLIB isnt working

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Bah, NMAKE in EQLIB isnt working

Post by Draekz » Fri May 16, 2003 10:33 am

Keeps giving me a ton of errors, all residing in EQLIB.h, i've looked at the posts but dont see how any of this has helped :\

Any ideas? ..guess i should post some source

Code: Select all

        if not exist "/" mkdir ""
        cl.exe /nologo /MT /W3 /GX /O2 /I "..\dxsdk81 OUTDIR=..\Release\include"
 /D "_USRDLL" /D "EQLIB_EXPORTS" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS"
 /D "CINTERFACE" /Fp".\Release\eqlib.pch" /YX /Fo".\Release\\" /Fd".\Release\\"
/FD /c  /Zi /Zp1 "EQLib.cpp"
EQLib.cpp
EQLib.h(57) : error C2143: syntax error : missing ';' before '*'
EQLib.h(57) : error C2501: 'IDirectInputDevice8A' : missing storage-class or typ
e specifiers
EQLib.h(57) : error C2501: 'EQADDR_DIKEYBOARD' : missing storage-class or type s
pecifiers
EQLib.h(58) : error C2143: syntax error : missing ';' before '*'
EQLib.h(58) : error C2501: 'IDirectInputDevice8A' : missing storage-class or typ
e specifiers
EQLib.h(58) : error C2086: 'IDirectInputDevice8A' : redefinition
EQLib.h(58) : error C2501: 'EQADDR_DIMOUSE' : missing storage-class or type spec
ifiers
EQLib.cpp(757) : error C2199: syntax error : found 'HRESULT (' at global scope (
was a declaration intended?)
EQLib.cpp(759) : error C2065: 'This' : undeclared identifier
EQLib.cpp(759) : error C2275: 'DWORD' : illegal use of this type as an expressio
n
        C:\Program Files\Microsoft Visual Studio\VC98\include\windef.h(141) : se
e declaration of 'DWORD'
EQLib.cpp(759) : error C2146: syntax error : missing ')' before identifier 'cbOb
jectData'
EQLib.cpp(759) : warning C4229: anachronism used : modifiers on data are ignored

EQLib.cpp(759) : error C2078: too many initializers
EQLib.cpp(759) : error C2275: 'DWORD' : illegal use of this type as an expressio
n
        C:\Program Files\Microsoft Visual Studio\VC98\include\windef.h(141) : se
e declaration of 'DWORD'
EQLib.cpp(759) : error C2059: syntax error : ')'
EQLib.cpp(760) : error C2143: syntax error : missing ';' before '{'
EQLib.cpp(760) : error C2447: missing function header (old-style formal list?)
EQLib.cpp(1123) : error C2059: syntax error : ')'
EQLib.cpp(1124) : error C2059: syntax error : ')'
EQLib.cpp(1399) : error C2065: 'IDIDevice' : undeclared identifier
EQLib.cpp(1399) : error C2106: '=' : left operand must be l-value
EQLib.cpp(1402) : error C2440: '=' : cannot convert from 'int *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-
style cast
EQLib.cpp(1406) : error C2227: left of '->lpVtbl' must point to class/struct/uni
on
EQLib.cpp(1406) : error C2227: left of '->GetDeviceData' must point to class/str
uct/union
EQLib.cpp(1411) : error C2065: 'DInputDataTrampoline' : undeclared identifier
EQLib.cpp(1411) : error C2227: left of '->lpVtbl' must point to class/struct/uni
on
EQLib.cpp(1411) : error C2227: left of '->GetDeviceData' must point to class/str
uct/union
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Any idea? I have no idea what to change, re-updated all the eqlib files (including makefile) yet i still get these errors. Cant seem to get it working :\

Any help would be appreciated

Draekz

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Fri May 16, 2003 12:20 pm

You are picking up the wrong dinput.h.

If you have one in the eqlib directory, delete it.

If you are missing dxsdk81 directory, retrieve it from CVS.

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Fri May 16, 2003 2:17 pm

Ahh ok, thought it had to do with Dinput.h, actually i renamed the folder it retrieved from in dxfolder81(not correct name). It DID give me errors before i changed it but once i did, those errors didnt occur.

I'll try updating it tho! Thankd DKIA!

Draekz

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Fri May 16, 2003 2:20 pm

ok thats wierd..had the right dinput.h, it just didnt recognize the Dx81 folder? I just copied it from Dxfolder and put it into eqlib and it worked *Shrugs*

Anyway, thanks DKIA, appreciate the info ;)

Draekz