error compiling 1.7.3

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
marian
Posts: 4
Joined: Tue Sep 12, 2006 5:40 am
Location: University Rome Tre

error compiling 1.7.3

Post by marian »

Trying to compile OpenSees1.7.3 I keep getting these error messages after the entire code has run through:


renderer.lib(OpenGlDevice.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)

renderer.lib(OpenGlDevice.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)

renderer.lib(OpenGlDevice.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)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "int __cdecl oglSetPixelFormat(struct HDC__ *,unsigned char,unsigned long)" (?oglSetPixelFormat@@YAHPAUHDC__@@EK@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function "int __cdecl oglSetPixelFormat(struct HDC__ *,unsigned char,unsigned long)" (?oglSetPixelFormat@@YAHPAUHDC__@@EK@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "int __cdecl oglSetPixelFormat(struct HDC__ *,unsigned char,unsigned long)" (?oglSetPixelFormat@@YAHPAUHDC__@@EK@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "struct HWND__ * __cdecl oglCreateWindow(char *,int,int,int,int,struct HGLRC__ * *,struct HDC__ * *)" (?oglCreateWindow@@YAPAUHWND__@@PADHHHHPAPAUHGLRC__@@PAPAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function "struct HWND__ * __cdecl oglCreateWindow(char *,int,int,int,int,struct HGLRC__ * *,struct HDC__ * *)" (?oglCreateWindow@@YAPAUHWND__@@PADHHHHPAPAUHGLRC__@@PAPAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "struct HWND__ * __cdecl oglCreateWindow(char *,int,int,int,int,struct HGLRC__ * *,struct HDC__ * *)" (?oglCreateWindow@@YAPAUHWND__@@PADHHHHPAPAUHGLRC__@@PAPAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function "struct HWND__ * __cdecl oglCreateWindow(char *,int,int,int,int,struct HGLRC__ * *,struct HDC__ * *)" (?oglCreateWindow@@YAPAUHWND__@@PADHHHHPAPAUHGLRC__@@PAPAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__RegisterClassA@4 referenced in function "struct HWND__ * __cdecl oglCreateWindow(char *,int,int,int,int,struct HGLRC__ * *,struct HDC__ * *)" (?oglCreateWindow@@YAPAUHWND__@@PADHHHHPAPAUHGLRC__@@PAPAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "struct HWND__ * __cdecl oglCreateWindow(char *,int,int,int,int,struct HGLRC__ * *,struct HDC__ * *)" (?oglCreateWindow@@YAPAUHWND__@@PADHHHHPAPAUHGLRC__@@PAPAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__LoadIconA@8 referenced in function "struct HWND__ * __cdecl oglCreateWindow(char *,int,int,int,int,struct HGLRC__ * *,struct HDC__ * *)" (?oglCreateWindow@@YAPAUHWND__@@PADHHHHPAPAUHGLRC__@@PAPAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function "int __cdecl oglDestroyWindow(char *,struct HWND__ *,struct HGLRC__ *,struct HDC__ *)" (?oglDestroyWindow@@YAHPADPAUHWND__@@PAUHGLRC__@@PAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "int __cdecl oglDestroyWindow(char *,struct HWND__ *,struct HGLRC__ *,struct HDC__ *)" (?oglDestroyWindow@@YAHPADPAUHWND__@@PAUHGLRC__@@PAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "int __cdecl oglDestroyWindow(char *,struct HWND__ *,struct HGLRC__ *,struct HDC__ *)" (?oglDestroyWindow@@YAHPADPAUHWND__@@PAUHGLRC__@@PAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "int __cdecl oglCreateBitmap(int,int,struct HGLRC__ * *,struct HDC__ * *,struct HBITMAP__ * *,struct tagBITMAPINFO *,unsigned char * *)" (?oglCreateBitmap@@YAHHHPAPAUHGLRC__@@PAPAUHDC__@@PAPAUHBITMAP__@@PAUtagBITMAPINFO@@PAPAE@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__CreateDIBSection@24 referenced in function "int __cdecl oglCreateBitmap(int,int,struct HGLRC__ * *,struct HDC__ * *,struct HBITMAP__ * *,struct tagBITMAPINFO *,unsigned char * *)" (?oglCreateBitmap@@YAHHHPAPAUHGLRC__@@PAPAUHDC__@@PAPAUHBITMAP__@@PAUtagBITMAPINFO@@PAPAE@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "int __cdecl oglCreateBitmap(int,int,struct HGLRC__ * *,struct HDC__ * *,struct HBITMAP__ * *,struct tagBITMAPINFO *,unsigned char * *)" (?oglCreateBitmap@@YAHHHPAPAUHGLRC__@@PAPAUHDC__@@PAPAUHBITMAP__@@PAUtagBITMAPINFO@@PAPAE@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "int __cdecl oglDestroyBitmap(struct HBITMAP__ * *,struct HGLRC__ *,struct HDC__ *)" (?oglDestroyBitmap@@YAHPAPAUHBITMAP__@@PAUHGLRC__@@PAUHDC__@@@Z)

renderer.lib(OpenGlDevice.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "public: virtual void __thiscall OpenGlDevice::ENDIMAGE(void)" (?ENDIMAGE@OpenGlDevice@@UAEXXZ)
.\..\..\bin/openSees.exe : fatal error LNK1120: 21 unresolved externals


Does anyone know what kind of mistake I'm making?
Thanks
sukumar_baishya
Posts: 31
Joined: Sun Jul 11, 2004 5:48 am
Location: NERIST, Arunachal Pradesh, India,791109
Contact:

Post by sukumar_baishya »

May i know your OS- windows XP or Linux. If Linux, which distibution?
marian
Posts: 4
Joined: Tue Sep 12, 2006 5:40 am
Location: University Rome Tre

Post by marian »

Microsoft Windows XP Professional
with Service Pack 2
Rockone
Posts: 5
Joined: Sat Jan 06, 2007 10:08 pm

Post by Rockone »

i think your lib path setting is not right.

if you are using MSVC, you can change them just like below.

Project->Settings->link

category: select "input"
add your lib path to "additional library path:"
Post Reply