Fatal Error v2.0.0 using MS Visual C++ Express

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Structural1
Posts: 7
Joined: Thu May 01, 2008 2:19 pm
Location: University of Texas

Fatal Error v2.0.0 using MS Visual C++ Express

Post by Structural1 »

Hello All,

I am compiling v2.0.0 of OpenSees before I add any code to create a new material model. I am using MS Visual C++ 2008 Express Edition. I have installed the following libraries in the following directories:

tcl
C:\Program Files\Tcl

SDK
C:\Program Files\Microsoft SDKs

MSDN
C:\Program Files\MSDN

I have loaded OpenSees2005.sln in MS Visual C++ and when I build the solution of the 25 projects I receive the following errors:

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\tclhyperbolicgapmaterial.cpp : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\smamaterial.cpp : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\hardeningmaterial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\hardeningmaterial.cpp(516) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\hardeningmaterial.cpp(516) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\HardeningMaterial.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\fedeasmaterial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\fedeasmaterial.cpp(527) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\fedeasmaterial.cpp(527) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\FedeasMaterial.sbr


17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\fatiguematerial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\fatiguematerial.cpp(897) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\fatiguematerial.cpp(897) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\FatigueMaterial.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\eppgapmaterial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\eppgapmaterial.cpp(272) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\eppgapmaterial.cpp(272) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\EPPGapMaterial.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\entmaterial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\entmaterial.cpp(213) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\entmaterial.cpp(213) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\ENTMaterial.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elasticppmaterial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elasticppmaterial.cpp(258) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elasticppmaterial.cpp(258) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\ElasticPPMaterial.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elasticmaterial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elasticmaterial.cpp(230) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elasticmaterial.cpp(230) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\ElasticMaterial.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elastic2material.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elastic2material.cpp(218) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\elastic2material.cpp(218) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\Elastic2Material.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\ecc01.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\ecc01.cpp(831) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\ecc01.cpp(831) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\ECC01.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\drainmaterial.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\drainmaterial.cpp(610) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\drainmaterial.cpp(610) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\DrainMaterial.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete07.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete07.cpp(1872) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete07.cpp(1872) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\Concrete07.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete06.cpp : error C2471: cannot update program database 'd:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\win32\obj\material\debug\vc90.pdb'

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete06.cpp(502) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete06.cpp(502) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\Concrete06.sbr

17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete01withsitc.cpp(702) : fatal error C1903: unable to recover from previous error(s); stopping compilation
17>d:\ut_research\matt_local_documents\ut_files\openseesdevelopment\opensees2.0.0\opensees\src\material\uniaxial\concrete01withsitc.cpp(702) : error C2418: cannot delete browser file: .\..\..\obj\material\debug\Concrete01WithSITC.sbr

17>BSCMAKE: error BK1506 : cannot open file '..\..\obj\material\debug\Bond_SP01.sbr': No such file or directory

23>LINK : fatal error LNK1104: cannot open file 'material.lib'

24>LINK : fatal error LNK1181: cannot open input file 'GlAux.lib'


Any help to fix these errors and compile the program would be greatly appreciated.

Thanks,

Matt
Structural1
Posts: 7
Joined: Thu May 01, 2008 2:19 pm
Location: University of Texas

Success! :D

Post by Structural1 »

I managed to resolve all of my errors and successfully compile OpenSees! For posterity I will describe my steps to compile the code.

I began using MS Visual C++ 2008 Express and then I switched to MS Visual Studio 2008 which has a much better installer since you can install the full libraries. I then updated the files that were posting "Mac file format detected" by double clicking on the error and selecting update to Windows format. I was able to remove all the Mac file errors from the program, but I still kept receiving a linking error "LINK : fatal error LNK1181: cannot open input file 'GlAux.lib' " which would not go away. I searched my computer for the GlAux.lib file but it did not exist in the VS library. :shock:

I then uninstalled MS Visual Studio 2008 and downloaded MS Visual Studio 2005. I was then able to right click on Solution 'OpenSees2005' in the solution explorer and build the solution successfully without errors. I then selected OpenSees as the StartUp Project and was able to release the exe file! :D

I believe what was causing the linking error was that MS Visual Studio 2008 uses a new library which had phased out the opengl GlAux.lib file. Fortunately, I was able to download an old version of MS Visual Studio 2005 which still includes the old GlAux.lib file. So the old code needs to be updated with the new opengl links available in the 2008 version.

I hope this helps any future developers successfully compile OpenSees.

Happy Programming,

Matt
kashani
Posts: 24
Joined: Thu Jun 16, 2011 8:37 pm

Re: Fatal Error v2.0.0 using MS Visual C++ Express

Post by kashani »

Thanks.
Smineing
Posts: 1
Joined: Sat Jun 30, 2012 2:09 am
Contact:

Re: Fatal Error v2.0.0 using MS Visual C++ Express

Post by Smineing »

I have just joined and I hope I will learn a lot of new information here.
I admire the valuable information you offered in your article. Excellent submission very good post.Keep posting thumbs up.
dissertationhelp
Posts: 1
Joined: Sun Jul 01, 2012 12:33 am
Contact:

Re: Fatal Error v2.0.0 using MS Visual C++ Express

Post by dissertationhelp »

This is a actual advantageous website which gives added benefits.I adore account all your comments here.I begin this is abundant for me… Thanks for it. I achievement it will helps to added people.
[url=www.onlineassignmentexpert.com/home.php]dissertation help[/url]
Post Reply