Skip to main content
gamedev.net
🔒 Locked

Please Help Me

Started by Marty15 Dec 5, 2001 at 3:54 AM 1 replies 200+ views
Original Post
Marty15
Marty15
I cant get the direct3Dcreate8 function to work. When i compile a program with direct3DCreate8 init it returns a linker error unresolved external direct3DCreate8 referenced from .......... can somebody help me please P.S. i am using c++ builder 4.0 Thankyou
Khaile
Khaile
You need to link with the direct3d library.

Go to Project->Settings and look at the Link tab. There you will find a field saying Object/Library Modules. Add d3d8.lib to the list... and you probably will want to add d3dx8.lib too.

Another way to link with libraries is to add a precompiler command in your source file. I use these two lines in my Direct3d wrapper class:

#pragma comment(lib, "d3d8.lib")
#pragma comment(lib, "d3dx8.lib")

Topic Locked

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

Sign in to reply to this topic.