Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

Visual C++ 2005 Express Edition Beta, cant compiler.. whats wrong?

This topic is 5020 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, ive just installed Visual C++ 2005 Express Edition Beta, and i created a basic win32 app, you know the one that just has a window, menu and a hello world type thing. Anyway when i try to compile it i get all these error messages. I havent modified it in anyway, any idea on why it is doing this?
Quote:
------ Build started: Project: eee, Configuration: Debug Win32 ------ Linking... eee.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16 eee.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16 eee.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorA@12 referenced in function _WinMain@16 eee.obj : error LNK2019: unresolved external symbol __imp__GetMessageA@16 referenced in function _WinMain@16 eee.obj : error LNK2019: unresolved external symbol __imp__LoadAcceleratorsA@8 referenced in function _WinMain@16 eee.obj : error LNK2019: unresolved external symbol __imp__LoadStringA@16 referenced in function _WinMain@16 eee.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z) eee.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z) eee.obj : error LNK2019: unresolved external symbol __imp__LoadIconA@8 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z) eee.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z) eee.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z) eee.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z) eee.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) eee.obj : error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) eee.obj : error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) eee.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) eee.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) eee.obj : error LNK2019: unresolved external symbol __imp__DialogBoxParamA@20 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) eee.obj : error LNK2019: unresolved external symbol __imp__EndDialog@8 referenced in function "long __stdcall About(struct HWND__ *,unsigned int,unsigned int,long)" (?About@@YGJPAUHWND__@@IIJ@Z) Debug/eee.exe : fatal error LNK1120: 19 unresolved externals Build log was saved at "file://c:\Docs\Programming\eee\eee\Debug\BuildLog.htm" eee - 20 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
btw i also tried to make a win32 app by entering it all in manually, but when i included the windows.h file, it said it wasnt found. So then i linked the visual c++ 2005 to my visual c++6 directories and it gets a message similar to the one above on things like WndProc etc. So anyone had this problem and overcome it? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Your installation seems funky. Have you looked up the error "LNK2019" in MSDN? It seems that your environment is unable to locate the static link libraries containing the definitions of several standard Win32 APIs.

Looks like you need a reinstall, or an investigation of project settings.

Share this post


Link to post
Share on other sites
Hi,

did you modify the default project configuration to use plateform SDK library?

see this link http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx


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!