Sign in to follow this  

unresolved external symbol

This topic is 4858 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

Hi, I'm just trying to get Andre Lamothes T3DLIB1 code to compile, but it's giving me problems. I know it's some little noob mistake, but it's driving me crazy and I've read about 20 other posts where people had similar problems and still haven't fixed it. (I'm using Microsoft Visual C++ .NET edition 2003). Here's what it comes up with: Compiling resources... Linking... T3DLIB1.obj : error LNK2001: unresolved external symbol "struct HWND__ * main_window_handle" (?main_window_handle@@3PAUHWND__@@A) LIBCD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup Debug/T3DLIB1.exe : fatal error LNK1120: 2 unresolved externals I included these libraries: ddraw.lib dsound.lib dinput.lib dsetup.lib dplayx.lib d3d8.lib dxguid.lib winmm.lib I made it a win32 project (not console), but tried console too, so that's not the problem. If anyone can help me you'd be my hero!

Share this post


Link to post
Share on other sites
I had the same error (LNK2001) when running "A Complete Windows Application" sample program from chapter 2, page 38 of the book *OpenGL Game Programming*. I also had fatal error LNK1120: 1 unresolved externals Error executing link.exe.

I'm using vc++ 6. I've been searching the help files for a couple hours to solve the error, but I'm just too new to vc++. Maybe this is a common problem for newbies...? I added the the libraries opengl32.lib and glu32.lib as the book suggests in chapter 1, by way of Project-->Settings-->"Link" tab.

Can anyone share some insight?

Share this post


Link to post
Share on other sites

This topic is 4858 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.

Guest
This topic is now closed to further replies.
Sign in to follow this