Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Yet anouther dev C++ prob (sigh) HELP!

This topic is 6191 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m getting this linker problem, its a refernce prob I believe. This is code that I took directly from begining D3d game programming by Wolfgang Engel. Here''s the error: ---------------------------------------------------------------- c:\dev-c++\onemore3dtest.o(.text+0x2e):onemore3dtest.: undefined reference to `CD3DApplication::Create(HINSTANCE__ *)'' c:\dev-c++\onemore3dtest.o(.text+0x4b):onemore3dtest.: undefined reference to `CD3DApplication::Run(void)'' c:\dev-c++\onemore3dtest.o(.text+0x73):onemore3dtest.: undefined reference to `CD3DApplication::CD3DApplication(void)'' c:\dev-c++\onemore3dtest.o(.data$__vt_17CMyD3DApplication+0x8):onemore3dtest.: undefined reference to `CD3DApplication::AdjustWindowForChange(void)'' c:\dev-c++\onemore3dtest.o(.data$__vt_17CMyD3DApplication+0x30):onemore3dtest.: undefined reference to `CD3DApplication::Create(HINSTANCE__ *)'' c:\dev-c++\onemore3dtest.o(.data$__vt_17CMyD3DApplication+0x34):onemore3dtest.: undefined reference to `CD3DApplication::Run(void)'' c:\dev-c++\onemore3dtest.o(.data$__vt_17CMyD3DApplication+0x38):onemore3dtest.: undefined reference to `CD3DApplication::MsgProc(HWND__ *, unsigned int, unsigned int, long)'' c:\dev-c++\onemore3dtest.o(.data$__vt_17CMyD3DApplication+0x3c):onemore3dtest.: undefined reference to `CD3DApplication:ause(int)'' --------------------------------------------------------------- I''ve done -fvtable-thunks thang and I''ve included these libaries..... -ld3d8 -ld3dx8d -lddraw -ld3dxof -ld3dxof -ld3d8 -lwinmm -ldxguid -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 ....hopefully ya can help me

Share this post

Link to post
Share on other sites
I think it's the code that's compiling
I see "CD3DApplication", which means you are using the common directX sdk sample code.
Did you actually include all the used files(not just the headers)
in the project?
You need to define each of those functions in the program.
Look at the sdk examples

Edited by - sflare on August 2, 2001 12:15:37 PM

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!