Sign in to follow this  

pesky unresolved externals

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

  • 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

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this