Errors in building OpenSees (windows)

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

Moderators: silvia, selimgunay, Moderators

Post Reply
hagbard85
Posts: 4
Joined: Tue Jan 08, 2008 9:32 am
Location: Carleton University

Errors in building OpenSees (windows)

Post by hagbard85 »

Hi everybody,

This is my first attempt to compile OpenSees source code. Unfortunately, I am having some errors in the process. These are the compiler error messages:

23>libm.lib(libm_error.obj) : error LNK2019: unresolved external symbol _errno referenced in function ___libm_error_support
23>libifcore.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol _errno
23>libifcore.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
23>libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol __pxcptinfoptrs referenced in function _GETEXCEPTIONPTRSQQ
23>.\..\..\bin/openSees.exe : fatal error LNK1120: 2 unresolved externals
23>Creating browse information file...
23>Microsoft Browse Information Maintenance Utility Version 8.00.50727
23>Copyright (C) Microsoft Corporation. All rights reserved.
23>Build log was saved at "file://c:\OpenSees1.7.5\Win32\obj\openSees\debug\BuildLog.htm"
23>openSees - 5 error(s), 7 warning(s)
========== Rebuild All: 22 succeeded, 1 failed, 0 skipped ==========


I am using Microsoft Visual Studio 5.0 to compile the source code. I have followed the instructions in this website. I have tcl/tk8.4 installed in C:\Program Files\Tcl and I have MSDEV installed in C:\MSDEV\.

I would really appreciate any suggestion or comment to solve this problem. Thank you very much!!

Carlos
hagbard85
Posts: 4
Joined: Tue Jan 08, 2008 9:32 am
Location: Carleton University

Update

Post by hagbard85 »

I have added the VC2005errno.cpp file to the OpenSees project. It has eliminated some of the errors. The error messages from the compiler are now:

23>Linking...
23>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
23>libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol __pxcptinfoptrs referenced in function _GETEXCEPTIONPTRSQQ
23>.\..\..\bin/openSees.exe : fatal error LNK1120: 1 unresolved externals
23>Creating browse information file...
23>Microsoft Browse Information Maintenance Utility Version 8.00.50727
23>Copyright (C) Microsoft Corporation. All rights reserved.
23>Build log was saved at "file://c:\OpenSees1.7.5\Win32\obj\openSees\debug\BuildLog.htm"
23>openSees - 2 error(s), 7 warning(s)
========== Build: 22 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




Suggestions and comments are welcome! Thank you,
Carlos
hagbard85
Posts: 4
Joined: Tue Jan 08, 2008 9:32 am
Location: Carleton University

Solution

Post by hagbard85 »

Finally it worked. I downloaded the libifcoremt library from http://opensees.berkeley.edu/cgi-bin/cv ... COREMT.lib. Then, I saved a copy of that file in my tcl\lib installation, with the following name: libifcore.lib. That was all. Hope this helps to anyone with the same problem.
:wink:
cyn08
Posts: 1
Joined: Thu May 15, 2008 3:05 am

Re: Solution

Post by cyn08 »

hagbard85 wrote:Finally it worked. I downloaded the libifcoremt library from http://opensees.berkeley.edu/cgi-bin/cv ... COREMT.lib. Then, I saved a copy of that file in my tcl\lib installation, with the following name: libifcore.lib. That was all. Hope this helps to anyone with the same problem.
:wink:
Yes I had the same problem. Thanks your my saviour. :D
thomas.ulrich
Posts: 28
Joined: Fri Mar 11, 2011 2:12 am
Location: Orléans

Re: Errors in building OpenSees (windows)

Post by thomas.ulrich »

Thank you it worked for me too.
(I first tried with VC++ express 2010, and I had trouble to compile, but with VC++ express 2008, it was al right).
Post Reply