Can anyone tell me what the following linker erros mean?
LINK : warning LNK4089: all references to "0.obj" discarded by /OPT:REF
LINK : warning LNK4089: all references to "1.obj" discarded by /OPT:REF
LINK : warning LNK4089: all references to "8.obj" discarded by /OPT:REF

They pop up when I create a window and call:
invoke DirectDrawCreate,0,addr ddraw,0
If I comment out the DirectDrawCreate call it works and builds fine.

I link to ddraw.inc and ddraw.lib. Do I have to link to the GUID if I use the NULL(default device) in this call?

Is it a problem with my .lib or .inc files or do you have to specify certain linker options when using DirextX?

I use the .lib and .inc files that I got from Chris Hobbs SpaceTris tutorial.


Any help at all would be appreciated.
Posted on 2001-10-15 19:37:57 by brewmanchu
I've got that error before when using some "wrong" import library
format (the lcc-win32 import libraries with the masm linker). Dunno
if that's the case for you. Try finding another ddraw.lib :). And btw,
they are warnings, not errors ;).
Posted on 2001-10-16 15:53:24 by f0dder
Thank you. I went back to using the ddraw.inc & .lib that came with masm and it worked fine. Does anyone have a later version of the DX includes and libs? (the whole set would be nice not just the ddraw) If not I'll just have to try and create them myself.
Posted on 2001-10-18 19:11:41 by brewmanchu
Caleb and Scronty have the goods your looking for - check out their web spaces.
Posted on 2001-10-18 21:11:42 by bitRAKE