Building OpenSees in windows

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

Moderators: silvia, selimgunay, Moderators

Post Reply
k.manoj
Posts: 26
Joined: Sun Nov 19, 2006 10:53 pm
Location: Tokyo Institute of Technology,
Contact:

Building OpenSees in windows

Post by k.manoj »

Dear all:

This is my first attempt to compile OpenSees source code. After all I could get the following error messages:

Linking...
25>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
25>libm.lib(libm_error.obj) : error LNK2019: unresolved external symbol _errno referenced in function ___libm_error_support
25>.\..\..\bin/openSeesTk.exe : fatal error LNK1120: 1 unresolved externals
25>Build log was saved at "file://f:\Research\Computation (PhD)\OpenSees1.7.5\Win32\obj\openSeesTk\debug\BuildLog.htm"
25>openSeesTk - 2 error(s), 3 warning(s)
========== Build: 22 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

I am using Microsoft Visual Studio 2005 (version 8.0.50727.42) to compile the source code. I have tcl/tk8.4.6.1 installed in C:\Program Files\Tcl. The Microsoft Visual Studio 2005 and MSDN are installed in D:\Program Files since I want some free space in my drive C.
I have put libm.lib file in the Tcl\lib and build it again. Still it is giving the same above error. :(

I would really appreciate any suggestion or comment to solve this problem.

Thanks in advance...
manoj
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you loaded the wrong project .. you need to load the OpenSees2005.sln
k.manoj
Posts: 26
Joined: Sun Nov 19, 2006 10:53 pm
Location: Tokyo Institute of Technology,
Contact:

Post by k.manoj »

Frank,

Thanks! It worked :) . However, I am getting 8 warnings as follows.

Compiling...
VC2005errno.cpp
tclMain.cpp
f:\research\computation (phd)\opensees1.7.5\src\tcl\tclmain.cpp(358) : warning C4996: 'strcpy' was declared deprecated
d:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
f:\research\computation (phd)\opensees1.7.5\src\tcl\tclmain.cpp(370) : warning C4996: 'fopen' was declared deprecated
d:\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.'
f:\research\computation (phd)\opensees1.7.5\src\tcl\tclmain.cpp(374) : warning C4996: 'fscanf' was declared deprecated
d:\program files\microsoft visual studio 8\vc\include\stdio.h(249) : see declaration of 'fscanf'
Message: 'This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
f:\research\computation (phd)\opensees1.7.5\src\tcl\tclmain.cpp(378) : warning C4996: 'strcpy' was declared deprecated
d:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
f:\research\computation (phd)\opensees1.7.5\src\tcl\tclmain.cpp(394) : warning C4996: 'strcpy' was declared deprecated
d:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
f:\research\computation (phd)\opensees1.7.5\src\tcl\tclmain.cpp(665) : warning C4996: 'sprintf' was declared deprecated
d:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
tclAppInit.cpp
Generating Code...
Compiling manifest to resources...
Linking...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
Embedding manifest...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at "file://f:\Research\Computation (PhD)\OpenSees1.7.5\Win32\obj\openSees\debug\BuildLog.htm"
OpenSees - 0 error(s), 8 warning(s)
========== Build: 23 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

How can I fix it. Should I replace the names as it suggests.
OR can I proceed even with those warnings.
I am a beginner to C++ and sorry for your inconvenience!!!

Thanks in advance...
manoj
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

try running it .. if it works forget about the warnings!
k.manoj
Posts: 26
Joined: Sun Nov 19, 2006 10:53 pm
Location: Tokyo Institute of Technology,
Contact:

Post by k.manoj »

Dear Frank,

It worked :D .
I appreciate you assistance :wink: .

Thanks.
manoj
Post Reply