yet another problem incorporating DirectX into a program

Started by
1 comment, last by RangerOne 24 years, 1 month ago
Can anyone tell me what is causing this error? I have a inawin.cpp sample file, which I decided to include in an app, so I can use some of the functions contained in it... everything compiles, but I get this linkage error: Linking... inawin.obj : error LNK2001: unresolved external symbol _DirectDrawCreate@12 Debug/6000Years.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I get no linkage errors when I comment out the DirectDrawCreate function and this means that all the other DirectDraw functions are linking right...? if ( FAILED( DirectDrawCreate( NULL, &lpDD, NULL ) ) ) { return Fail( hwnd, "Couldn''t create DirectDraw object.\n" ); How can the linker not like this? It works in the other program... and it uses the same include files...
Advertisement
Did you include the directx libraries? it sounds like you''re missing them...


_________________Gecko___
Gecko Design

_________________Gecko___Gecko Design
Yes, just include the ddraw.lib file into your project. It should get rid of the error. And also make sure that you have your directories set up in your compiler right so that it looks in the right library directory.

ColdfireV
[email=jperegrine@customcall.com]ColdfireV[/email]

This topic is closed to new replies.

Advertisement