User forums > Help

undefined reference to `Direct3DCreate8@4

(1/4) > >>

jokerar:
sorry to bother you with this stupid qoestion. After i installed
rc 1, i set the Global Compiler options to point the Lib and Include directories
to directx8 sdk accordingly, but i still get this error when i compile...

is it something i didnt do? What could possibly be the cause of it?
thanks.

.objs\WinMain.o(.text+0x1ff):WinMain.cpp: undefined reference to `Direct3DCreate8@4'
Process terminated with status 1 (0 minutes, 0 seconds)


undefined reference to `Direct3DCreate8@4

rickg22:
That error usually means a required library wasn't linked. Did you include the appropriate library in the project's used libraries?

jokerar:
you mean i have to right click my project under the workspace,
select propertise, and set their lib and include directories again after
i set them in global compiler option menu? Is not it automatically done with
global option? Do i  have to do that everytime i start a new project? thanks

darklordsatan:
Ok, so you put the required included dirs. However, you need to include the libraries (you know, the .lib or .a) in the "Linker Option" tab, wheter globally (in which case you wont need to do it for every project) or locally for every project.

jokerar:
thanks for the reply, but i believe i must make myself clearer:

the directx sdk has two directories that i pointed in global compiler options,
Include:this is the directory i pointed in 'compiler' tab of 'Directories' tab, like this

d:\SDK\dx_81\include
d:\MinWG\include

Lib:this is the linker folder i pointed in the 'linker' tab:

d:\SDK\dx_81\LIB
d:\MinWG\lib

my dx sdk folders are  placed above mingw folders

im confused.

Navigation

[0] Message Index

[#] Next page

Go to full version