www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Problem compiling DX9 with 8.38 compiler

reply Sean Wall <Sean_member pathlink.com> writes:
Here's a strange thing.  I just upgraded my CD installation to the 8.38 compiler
using the update zip file.  I had an existing project to build one of the DX9
samples which built just fine under the 8.37 compiler.  However, when I tried to
rebuild with 8.38, I can't compile the source.  I get:

sc Meshes.cpp -mn -o+time -WA -3 -a8 -c -oMeshes.obj 
Error: e:\dx90sdk\include\d3dx9math.inl(966): undefined identifier 'UINT_PTR'
Error: e:\dx90sdk\include\d3dx9math.inl(979): ')' expected
Lines Processed: 138323  Errors: 2  Warnings: 0
Build failed

I positioned the DirectX includes and libs both before and after the PSDK
directories and it makes no difference.  I can create a project using AppExpress
and it builds correctly.

Did something change in the compiler (I'm thinking implicit #defines here) with
the 8.38 release which is causing a header to not be included?  Any suggestions
would be appreciated!
Dec 02 2003
parent Sean Wall <Sean_member pathlink.com> writes:
Never mind!  I figured it out on my own.  Chalk this one up to 'silliness on the
part of the programmer'!   :)

After I installed the update, I forgot to re-update my sc.ini file to point to
the updated PSDK files I have (downloaded from MS and converted using coff2omf).
After doing that, it builds just fine again.

Oh, well.  Sometimes it the easy ones that give you the most trouble.


In article <bqi7vh$1uip$1 digitaldaemon.com>, Sean Wall says...
Here's a strange thing.  I just upgraded my CD installation to the 8.38 compiler
using the update zip file.  I had an existing project to build one of the DX9
samples which built just fine under the 8.37 compiler.  However, when I tried to
rebuild with 8.38, I can't compile the source.  I get:

sc Meshes.cpp -mn -o+time -WA -3 -a8 -c -oMeshes.obj 
Error: e:\dx90sdk\include\d3dx9math.inl(966): undefined identifier 'UINT_PTR'
Error: e:\dx90sdk\include\d3dx9math.inl(979): ')' expected
Lines Processed: 138323  Errors: 2  Warnings: 0
Build failed

I positioned the DirectX includes and libs both before and after the PSDK
directories and it makes no difference.  I can create a project using AppExpress
and it builds correctly.

Did something change in the compiler (I'm thinking implicit #defines here) with
the 8.38 release which is causing a header to not be included?  Any suggestions
would be appreciated!
Dec 02 2003