Skip to main content
gamedev.net
🔒 Locked

Cant compile

Started by kayX Oct 24, 2001 at 3:58 AM 3 replies 700+ views
Original Post
kayX
kayX
i added the lib and include path in the tools/option/directory tab and still fail to compile This is the error Linking... Main.obj : error LNK2001: unresolved external symbol _Direct3DCreate8@4 Debug/trying.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. any ideas? er.. i decided to use vc6 instead of vb6, thats when all the trouble came in. thanks in advance
kayX
kayX
oppppssssssss
its ok now
i forgot to link it
everythings fine now
fisher
fisher
linker still can''t find lib file with Direct3DCreate8 func.
(f) Fisher
Dactylos
Dactylos
fisher: If you are using Microsoft Visual C++, make sure that the directory containing the DirectX 8 libs come before the preconfigured directories, since MSVC++ comes with an old version of DX (3 I think), and the linker will use whatever libraries it finds first.

The same goes for the include directories.
kayX
kayX
go to menu and select tools->option
look for the directories tab.
on the drop down list is set to "include files"
and include the path of your sdk/include path
on the drop down list, set it to "library files" and set the path
to sdk/lib

then link them by going to menu->Project->settings
click on the link tab and add the .lib file u need into the long list of .lib file name

hope that help

Topic Locked

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

Sign in to reply to this topic.