Sign in to follow this  
johnnyBravo

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

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
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

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