errors compiling 1.7

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

Moderators: silvia, selimgunay, Moderators

Post Reply
mari
Posts: 3
Joined: Fri Jul 14, 2006 2:52 am

errors compiling 1.7

Post by mari »

Trying to compile OpenSees1.7.0 using Active Tcl 8.4.7 I keep getting these error messages after the entire code has run through:

1>------ Build started: Project: quickMain, Configuration: Debug Win32 ------
2>------ Build started: Project: openSeesTk, Configuration: Debug Win32 ------
1>Linking...
2>Linking...
2>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
2>LINK : fatal error LNK1181: cannot open input file 'tcl83.lib'
1>LINK : fatal error LNK1181: cannot open input file 'tcl83.lib'
1>Build log was saved at "file://c:\Documents and Settings\user\Desktop\OpenSees1.7.1\OpenSees\Win32\obj\quickMain\debug\BuildLog.htm"
1>quickMain - 1 error(s), 1 warning(s)
2>Build log was saved at "file://c:\Documents and Settings\user\Desktop\OpenSees1.7.1\OpenSees\Win32\obj\openSeesTk\debug\BuildLog.htm"
2>openSeesTk - 1 error(s), 1 warning(s)
3>------ Build started: Project: openSees, Configuration: Debug Win32 ------
3>Linking...
3>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
3>libIEPCF90.lib(2696199.obj) : error LNK2019: unresolved external symbol _errno referenced in function _FileOpen.1
3>libIEPCF90.lib(269697.obj) : error LNK2001: unresolved external symbol _errno
3>libIEPCF90.lib(2696173.obj) : error LNK2001: unresolved external symbol _errno
3>.\..\..\bin/openSees.exe : fatal error LNK1120: 1 unresolved externals
3>Build log was saved at "file://c:\Documents and Settings\user\Desktop\OpenSees1.7.1\OpenSees\Win32\obj\openSees\debug\BuildLog.htm"
3>openSees - 4 error(s), 1 warning(s)
========== Build: 0 succeeded, 3 failed, 21 up-to-date, 0 skipped ==========



Does anyone know what kind of mistake I'm making?
Thanks
mari
Posts: 3
Joined: Fri Jul 14, 2006 2:52 am

Post by mari »

i'm using vc++ 2005
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

there is a problem when linking with the fortran libraries with 2005. i have
provided a fix. you also have a problem in the older 1.7.0 projects which are still linking with tcl8.3; you now have tcl8.4 libs.

however suggest you get the latest code using cvs 1.7.2 .. you will
need to use cvs or your web browser to get the new file VC2005errno.cpp
which must be added to the opensees project in the workspace anyway.

i have modified the code in the repository to work with vc2005 .. you
need to obtain the code using cvs .. when using 2005 there is an additional
step required to compile (this is because it uses the same projects as 2003
and i don't want to have to update 3 sets of projects vc6.0, vc2003 and vc2005)

1. when compiling make sure you open the microsoft visual studio solution
file as opposed to the vc++ 6.0 workspace. vc2005 will then do a conversion of the 2003 projects to 2005.
2. when conversion is done you want to add a new file to the OpenSees
project. when open right click on the OpenSees project; select add and choose add existing item and select the file OpenSees/SRC/win32/VC2005errno.cpp (which is up 2 directories i believe from where the selection starts).
mari
Posts: 3
Joined: Fri Jul 14, 2006 2:52 am

Post by mari »

thank you for your help!
i'm really greatful to you!!
nibas
Posts: 24
Joined: Thu Jun 09, 2005 12:25 am
Location: NTUA

Post by nibas »

thank you too!
Nibas
Civil Engineer
Ph.D. Candidate
Rockone
Posts: 5
Joined: Sat Jan 06, 2007 10:08 pm

Post by Rockone »

thank you very much, fmk.
i get some good suggestion from your reply.
ingsessa
Posts: 2
Joined: Mon Jun 11, 2007 1:51 pm
Location: Berkeley

Post by ingsessa »

Dear all,
I tried to compile two versions of OpenSees: the 1.7.3 and a modified version and I encountered the same error in both versions:

Code: Select all

Linking...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
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__EndPa int@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__BeginPa int@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
I tried to follow fmk's istructions. I've Win XP Home 2002 with SP2, Tcl 8.4.6.1 and I'm using VC++ 2005 Express Edition.
The project has been converted and I added VC2005errno.cpp to the project OpenSees but both versions give the same error again. The file is:

Code: Select all

extern "C" 
{
    int errno;
}
Does anybody knows what's wrong?

I have an italian version of Win XP, can it be the problem?

Thanks in advance
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Post by rjaeger »

Hello,

Since this thread is still open, I'm assuming the solution was never found. I ran into a similar problem just now and followed the instructions found at Alisa Neeman's website: http://www.soe.ucsc.edu/~aneeman/VCgotchas.html

My solution was to close Visual Studio, delete the .ncb file which is located in the same directory as the .sln file and then again try building opensees.

-Robbie
opensees33
Posts: 6
Joined: Tue Oct 23, 2007 1:30 am

Post by opensees33 »

I want to know that whenever i work with at the complier time it display the complier error but when i wll complier it on other software it does not show the error.
I love opensees
opensees33
Posts: 6
Joined: Tue Oct 23, 2007 1:30 am

Post by opensees33 »

I want to know that whenever i work with OpenSees1.7.0 using Active Tcl 8.4.7 at the complier time it display the complier error but when i wll complier it on other software it does not show the error.
I love opensees
hellojikir
Posts: 10
Joined: Tue Apr 15, 2008 6:38 am

Post by hellojikir »

:D :D :D :D






ImageImageImageImageImageImageImageImageImageImage
Post Reply