Visual c++ express 2005

Started by
5 comments, last by Bluseed 17 years, 9 months ago
I've been using vc++ 6 and just got vc++ express 2005, and im trying to link the include folder and library folder, can someone tell me where i linke them??
Advertisement
Go to your Tools menu and choose Options. Then choose Projects->VC++ Directories from the tree in the left of the window. The interface to the right will be similar to that in VC++ 6.

To set additional include and library paths for a single project only, right click on the project in the Solution Explorer view, choose Properties and go to either C++->General or Linker->General in the treeview.
Kool that works thx!! now what the hell does it mean that its "deprecated"?
and what does nonicrementally mean! These are my errors and this prog works on my vc++ 6 now im trying to make sure my progs work in vc++ express 2005.
And ive linked my GLSDK include and lib folder to it as well.
so whats going on?


Compiling...Lesson1.cppc:\documents and settings\jrp\desktop\opengl work\lesson01\lesson1.cpp(128) : warning C4996: 'vsprintf' was declared deprecated        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'vsprintf'        Message: 'This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'c:\documents and settings\jrp\desktop\opengl work\lesson01\lesson1.cpp(147) : warning C4996: 'fopen' was declared deprecated        c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'Linking...LINK : warning LNK4076: invalid incremental status file '.\Debug/3DPong.ilk'; linking nonincrementallyLesson1.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "void __cdecl BuildFont(void)" (?BuildFont@@YAXXZ)GLaux.lib(tkdib.obj) : error LNK2001: unresolved external symbol __imp__DeleteObject@4GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__DeleteObject@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "void __cdecl BuildFont(void)" (?BuildFont@@YAXXZ)GLaux.lib(tkdib.obj) : error LNK2001: unresolved external symbol __imp__SelectObject@8Lesson1.obj : error LNK2019: unresolved external symbol __imp__CreateFontA@56 referenced in function "void __cdecl BuildFont(void)" (?BuildFont@@YAXXZ)Lesson1.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function "void __cdecl KillGLWindow(void)" (?KillGLWindow@@YAXXZ)Lesson1.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "void __cdecl KillGLWindow(void)" (?KillGLWindow@@YAXXZ)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__DestroyWindow@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "void __cdecl KillGLWindow(void)" (?KillGLWindow@@YAXXZ)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__ReleaseDC@8Lesson1.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function "void __cdecl KillGLWindow(void)" (?KillGLWindow@@YAXXZ)GLaux.lib(tkimage.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxA@16GLaux.lib(tkdib.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxA@16GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxA@16Lesson1.obj : error LNK2019: unresolved external symbol __imp__ShowCursor@4 referenced in function "void __cdecl KillGLWindow(void)" (?KillGLWindow@@YAXXZ)Lesson1.obj : error LNK2019: unresolved external symbol __imp__ChangeDisplaySettingsA@8 referenced in function "void __cdecl KillGLWindow(void)" (?KillGLWindow@@YAXXZ)Lesson1.obj : error LNK2019: unresolved external symbol __imp__SetFocus@4 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)Lesson1.obj : error LNK2019: unresolved external symbol __imp__SetForegroundWindow@4 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)Lesson1.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__ShowWindow@8Lesson1.obj : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__SetPixelFormat@12Lesson1.obj : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__ChoosePixelFormat@8Lesson1.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__GetDC@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__CreateWindowExA@48Lesson1.obj : error LNK2019: unresolved external symbol __imp__AdjustWindowRectEx@16 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)Lesson1.obj : error LNK2019: unresolved external symbol __imp__RegisterClassA@4 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegisterClassA@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__LoadCursorA@8Lesson1.obj : error LNK2019: unresolved external symbol __imp__LoadIconA@8 referenced in function "int __cdecl CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@@YAHPADHHH_N@Z)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__LoadIconA@8Lesson1.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)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__DefWindowProcA@16Lesson1.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)GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__PostQuitMessage@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function _WinMain@16GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__SwapBuffers@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__TranslateMessage@4Lesson1.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function _WinMain@16GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__PeekMessageA@20GLaux.lib(tkimage.obj) : error LNK2019: unresolved external symbol __imp__GetFocus@0 referenced in function _RawImageOpenAW@8GLaux.lib(tkdib.obj) : error LNK2001: unresolved external symbol __imp__GetFocus@0GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__GetFocus@0GLaux.lib(tkimage.obj) : error LNK2019: unresolved external symbol __imp__wsprintfA referenced in function _RawImageOpenAW@8GLaux.lib(tkdib.obj) : error LNK2001: unresolved external symbol __imp__wsprintfAGLaux.lib(tkdib.obj) : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function _tkDIBImageLoadAW@8GLaux.lib(tkdib.obj) : error LNK2019: unresolved external symbol __imp__GdiFlush@0 referenced in function _tkDIBImageLoadAW@8GLaux.lib(tkdib.obj) : error LNK2019: unresolved external symbol __imp__SetDIBits@28 referenced in function _tkDIBImageLoadAW@8GLaux.lib(tkdib.obj) : error LNK2019: unresolved external symbol __imp__CreateDIBSection@24 referenced in function _tkDIBImageLoadAW@8GLaux.lib(tkdib.obj) : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function _tkDIBImageLoadAW@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetMessageA@16 referenced in function _tkExec@0GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function _tkExec@0GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function _tkInitPosition@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetWindowRect@8 referenced in function _tkInitWindowAW@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function _tkInitWindowAW@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__AdjustWindowRect@12 referenced in function _tkInitWindowAW@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RegisterClassW@4 referenced in function _tkInitWindowAW@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function _tkInitWindowAW@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__SetPaletteEntries@16 referenced in function _tkSetOneColor@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetPaletteEntries@16 referenced in function _tkSetFogRamp@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function _tkGetMouseLoc@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RealizePalette@4 referenced in function _tkWndProc@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__SelectPalette@12 referenced in function _tkWndProc@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__ReleaseCapture@0 referenced in function _tkWndProc@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__SetCapture@4 referenced in function _tkWndProc@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetKeyState@4 referenced in function _tkWndProc@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function _tkWndProc@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function _tkWndProc@16GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _GetRegistrySysColors@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _GetRegistrySysColors@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _GetRegistrySysColors@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__PostMessageA@16 referenced in function _GrabStaticEntries@4GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__SetSysColors@12 referenced in function _GrabStaticEntries@4GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetSysColor@4 referenced in function _GrabStaticEntries@4GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__SetSystemPaletteUse@8 referenced in function _GrabStaticEntries@4GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__CreatePalette@4 referenced in function _FlushPalette@8GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__DescribePixelFormat@16 referenced in function _FindExactPixelFormat@12GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__UnrealizeObject@4 referenced in function _RealizePaletteNow@12GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__InvalidateRect@12 referenced in function _ForceRedraw@4GLaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__GetPixelFormat@4 referenced in function _PixelFormatDescriptorFromDc@8.\Debug/3DPong.exe : fatal error LNK1120: 63 unresolved externalsBuild log was saved at "file://c:\Documents and Settings\JRP\Desktop\OpenGL Work\Copy of 3DPong\Debug\BuildLog.htm"3DPong - 89 error(s), 2 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
To deprecate a function means to mark it as available but not recommended. Microsoft marked many of the C standard library functions as deprecated because they are more prone to buffer overflow exploits than another family of Microsoft-only functions (with the same names as the standard C functions but an _s appended to the end).

The linker problems you are having are due to the fact that Visual C++ Express doesn't automatically link to many of the standard Win32 libraries. There is a page on MSDN that shows how to make it automatically link to them in new projects, though I forget the link. To make it work in your project, try adding user32.lib and gdi32.lib to your list of additional libraries in your per-project Linker settings.
koo that worked too, ill remember that.
Now i cant get rid of this Deprecation thingy!!!!
How do i do that?

------ Rebuild All started: Project: 3DPong, Configuration: Debug Win32 ------Deleting intermediate and output files for project '3DPong', configuration 'Debug|Win32'Compiling...Lesson1.cppc:\documents and settings\jrp\desktop\opengl work\lesson01\lesson1.cpp(128) : warning C4996: 'vsprintf' was declared deprecated        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'vsprintf'        Message: 'This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'c:\documents and settings\jrp\desktop\opengl work\lesson01\lesson1.cpp(147) : warning C4996: 'fopen' was declared deprecated        c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'Compiling manifest to resources...Linking...Embedding manifest...Build log was saved at "file://c:\Documents and Settings\JRP\Desktop\OpenGL Work\3DPong2\Debug\BuildLog.htm"3DPong - 0 error(s), 2 warning(s)========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


[Edited by - Bluseed on July 2, 2006 9:33:29 PM]
You have four options:

1. Stop using the old (but standard-compliant) functions and switch to the Microsoft ones (which will break compatibility with other compilers).
2. Disable warning C4996 (either under C++->Advanced in your project's properties or using the line #pragma warning(disable: 4996).
3. #define _CRT_SECURE_NO_DEPRECATE before you include any header files (i.e. as the first line of code in your stdafx.h).
4. Ignore the warnings.
is see!! thx i got it going....

This topic is closed to new replies.

Advertisement