Skip to main content
gamedev.net
🔒 Locked

recompile tutorial

Started by Yratelev 2 replies 550+ views
Original Post
Yratelev
Yratelev
ok, ive copied d8 3D tutorial 1 to another folder to edit a bit, but before ANY editting i recompiled, and now it says this: CreateDevice.obj : error LNK2001: unresolved external symbol _Direct3DCreate8@4 Help! Yratelev
Yratelev
ToohrVyk
ToohrVyk
Use d3d8.lib in your project (will be found in [SKDroot]\lib I believe).

Your program is trying to call functions such as Direct3D8Create (declared in d3d8.h) but does not find their definition (which is inside the lib) = what they actually do.
Yratelev
Yratelev
cheers - so how come the original tutorial complied?
Yratelev
Qatal
Qatal
either:

1. they included it but didnt tell you (my pet gripe with other people''s tuts, btw )

2. they used a nifty #pragma statement in their header which they didnt tell you about, which gets around playing with the linker settings

all in all, it comes down to they didnt tell you about it

but yeah its all good

Qatal
die or be died...i think

Topic Locked

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

Sign in to reply to this topic.