> I'm trying to compile a direct x program and I keep
> getting the following error message
> c:\my documents\main.o(.text+0x1d0):main.cpp:
> undefined reference to `DirectDrawCreateEx@16'
>
> Does anyone knows how can I stop getting this error. I
> have the following option "-fvtable-thunks" set, as
> well as linking to libraries ddraw & dxguid. Also the
> include files are set. Is there anything else I need
> to set.
Maybe you are linking to an old version of ddraw ? I think you need at
least DX7 to have the function 'DirectDrawCreateEx', before you only
have 'DirectDrawCreate'. I remember there was a DirectX 7.0 package for
dev-c++ available from the dev-c++ website, if you use it there
shouldn't be any problems with compiling.
Elias Pschernig
|