Skip to main content
GameDev.net gamedev.net
🔒 Locked

Anyone Help me Plz :(

Started by Phyleo DaCosta Aug 22, 2012 at 9:17 AM 3 replies 1.5k views
Original Post
Phyleo DaCosta
Phyleo DaCosta
1>------ Rebuild All started: Project: D3D, Configuration: Release Win32 ------
1> ade32.cpp
1> Building : DeadHell D3D Menu
1> deadhellbase.cpp
1> Building : DeadHell D3D Menu
1> deadhellfont.cpp
1> deadhellmenu.cpp
1> Building : DeadHell D3D Menu
1> deadhellsound.cpp
1> Building : DeadHell D3D Menu
1>deadhellbase.obj : error LNK2001: unresolved external symbol _Direct3DCreate9@4
1>deadhellmenu.obj : error LNK2001: unresolved external symbol "public: char * __thiscall cMenu::TIME(void)" (?TIME@cMenu@@QAEPADXZ)
1>D:\ABANG\Hasil Pembuatan D3D\D3D\Release\D3D.dll : fatal error LNK1120: 2 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Hodgman
Hodgman
These are called "linker errors", you'll find some generic advice by searching for "C++ linker error".

The D3D one is because you need to add the D3D libraries to your MSVC project's linker inputs/dependencies, e.g. d3d9.lib
The cMenu::TIME one will because that function is missing / wasn't compiled.
Phyleo DaCosta
Phyleo DaCosta
I've tried to add in header
# pragma comment (lib, "d3d9.lib")
# pragma comment (lib, "d3dx9.lib")

but still
deadhellbase.obj: error LNK2001: unresolved external symbol _Direct3DCreate9 @ 4
and which is still error
deadhellmenu.obj: error LNK2001: unresolved external symbol "public: char * __ thiscall CMenu :: TIME (void)" (? TIME @ @ @ QAEPADXZ CMenu)
SimonForsman
SimonForsman
Did you install the DirectX SDK ?
[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

Topic Locked

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

Sign in to reply to this topic.