Jump to content
  • Advertisement
Sign in to follow this  
jdixon567

pesky unresolved externals

This topic is 5042 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
Advertisement

  • You created a Win32 program but did not supply the appropriate entry point: int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)

  • You have declared the variable main_window_handle extern but did not define it anywhere, try putting HWND main_window_handle; in some CPP file that includes the header that it is declared in.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!