Skip to main content
GameDev.net gamedev.net
🔒 Locked

strange errors (undefined type or something)

Started by TransistoR Aug 7, 2006 at 1:40 PM 0 replies 750+ views
Original Post
TransistoR
TransistoR

--------------------Configuration: Fur - Win32 Release--------------------
Compiling...
Fur.cpp
..\..\common\include\D3DEnumeration.h(33) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(33) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(33) : error C2501: 'pDisplayModeList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(34) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(34) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(34) : error C2501: 'pDeviceInfoList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(49) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(49) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(49) : error C2501: 'pDeviceComboList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(78) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(78) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(78) : error C2501: 'pDepthStencilFormatList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(79) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(79) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(79) : error C2501: 'pMultiSampleTypeList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(80) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(80) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(80) : error C2501: 'pMultiSampleQualityList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(82) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(82) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(82) : error C2501: 'pDSMSConflictList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(83) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(83) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(83) : error C2501: 'pVertexProcessingTypeList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(84) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(84) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(84) : error C2501: 'pPresentIntervalList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(104) : error C2061: syntax error : identifier 'CArrayList'
..\..\common\include\D3DEnumeration.h(105) : error C2061: syntax error : identifier 'CArrayList'
..\..\common\include\D3DEnumeration.h(113) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(113) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(113) : error C2501: 'm_pAdapterInfoList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(128) : error C2143: syntax error : missing ';' before '*'
..\..\common\include\D3DEnumeration.h(128) : error C2501: 'CArrayList' : missing storage-class or type specifiers
..\..\common\include\D3DEnumeration.h(128) : error C2501: 'm_pAllowedAdapterFormatList' : missing storage-class or type specifiers
E:\VC98\Samples\C++\Direct3D\Fur\Fur.cpp(279) : error C2065: 'DXUtil_FindMediaFileCb' : undeclared identifier
E:\VC98\Samples\C++\Direct3D\Fur\Fur.cpp(444) : error C2065: 'SAFE_RELEASE' : undeclared identifier
E:\VC98\Samples\C++\Direct3D\Fur\Fur.cpp(455) : error C2065: 'SAFE_DELETE_ARRAY' : undeclared identifier
E:\VC98\Samples\C++\Direct3D\Fur\Fur.cpp(491) : error C2065: 'SAFE_DELETE' : undeclared identifier
Error executing cl.exe.

Fur.exe - 39 error(s), 0 warning(s)
This is what i get when i try to compile c++ sample project "Fur" included in directix 2006 SDK (using Microsoft Visual C++). Maybe it is linked bad. i've just copied the SDK folder to Microsoft Vis. folder. Can that cause it?
jollyjeffers
jollyjeffers
Three things jump out at me here:

Firstly; E:\VC98\Samples\C++\Direct3D\Fur\Fur.cpp Indicates you're using Visual C++ 6, is this correct? If so, its been unsupported for about 18 months now - you'll be very lucky to get anything from recent SDK's to compile with VC6. Go download VC2005 Express Edition - its free and infinitely better than VC6.

Secondly; You didn't run the installer and just copied the files across? Yeah, its quite likely you've completely broken things here. By the looks of your errors it cant find various symbol/type definitions which would match up with missing header files and so on. Install the SDK properly unless you really (and I mean really) understand how to configure SDK's, paths and your compiler/IDE.

Thirdly, you get similar errors if you dont install a valid Platform (aka Windows) SDK as well as DirectX's SDK. The PSDK is a prerequisite to DX development, so make sure you've got that sorted as well. If you download VC8 as I suggested above then you'll need to download a new/updated SDK.

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.