Could not build the latest version on Visual Studio 2010

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

Moderators: silvia, selimgunay, Moderators

Post Reply
jinlu
Posts: 47
Joined: Fri Jul 14, 2006 5:50 pm
Location: UC San Diego

Could not build the latest version on Visual Studio 2010

Post by jinlu »

Below is the error message:

1>------ Build started: Project: quickMain, Configuration: Debug Win32 ------
2>------ Build started: Project: OpenSeesTk, Configuration: Debug Win32 ------
1>Build started 9/29/2012 1:21:05 AM.
2>Build started 9/29/2012 1:21:05 AM.
2>InitializeBuildStatus:
2> Touching ".\..\..\obj\openSeesTk\debug\OpenSeesTk.unsuccessfulbuild".
1>InitializeBuildStatus:
1> Touching ".\..\..\obj\quickMain\debug\quickMain.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
2>ClCompile:
2> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
2>ManifestResourceCompile:
2> All outputs are up-to-date.
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
1>domain.lib(Domain.obj) : warning LNK4006: "double ops_Dt" (?ops_Dt@@3NA) already defined in main.obj; second definition ignored
1>element.lib(Element.obj) : warning LNK4006: "class Element * ops_TheActiveElement" (?ops_TheActiveElement@@3PAVElement@@A) already defined in main.obj; second definition ignored
2>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
1>domain.lib(LinearSeries.obj) : error LNK2019: unresolved external symbol _ops_getdoubleinput_ referenced in function "void * __cdecl OPS_NewLinearSeries(void)" (?OPS_NewLinearSeries@@YAPAXXZ)
1>element.lib(Truss.obj) : error LNK2001: unresolved external symbol _ops_getdoubleinput_
1>material.lib(ElasticMaterial.obj) : error LNK2001: unresolved external symbol _ops_getdoubleinput_
1>domain.lib(LinearSeries.obj) : error LNK2019: unresolved external symbol _ops_getstring referenced in function "void * __cdecl OPS_NewLinearSeries(void)" (?OPS_NewLinearSeries@@YAPAXXZ)
1>element.lib(Truss.obj) : error LNK2001: unresolved external symbol _ops_getstring
1>domain.lib(LinearSeries.obj) : error LNK2019: unresolved external symbol _ops_getintinput_ referenced in function "void * __cdecl OPS_NewLinearSeries(void)" (?OPS_NewLinearSeries@@YAPAXXZ)
1>element.lib(Truss.obj) : error LNK2001: unresolved external symbol _ops_getintinput_
1>material.lib(ElasticMaterial.obj) : error LNK2001: unresolved external symbol _ops_getintinput_
1>domain.lib(LinearSeries.obj) : error LNK2019: unresolved external symbol _OPS_GetNumRemainingInputArgs referenced in function "void * __cdecl OPS_NewLinearSeries(void)" (?OPS_NewLinearSeries@@YAPAXXZ)
1>element.lib(Truss.obj) : error LNK2001: unresolved external symbol _OPS_GetNumRemainingInputArgs
1>material.lib(ElasticMaterial.obj) : error LNK2001: unresolved external symbol _OPS_GetNumRemainingInputArgs
1>element.lib(Truss.obj) : error LNK2019: unresolved external symbol "class UniaxialMaterial * __cdecl OPS_GetUniaxialMaterial(int)" (?OPS_GetUniaxialMaterial@@YAPAVUniaxialMaterial@@H@Z) referenced in function "void * __cdecl OPS_NewTrussElement(void)" (?OPS_NewTrussElement@@YAPAXXZ)
1>element.lib(Truss.obj) : error LNK2019: unresolved external symbol _ops_getndm_ referenced in function "void * __cdecl OPS_NewTrussElement(void)" (?OPS_NewTrussElement@@YAPAXXZ)
1>.\..\..\bin/quickMain.exe : fatal error LNK1120: 6 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.98
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_spfree referenced in function "public: virtual __thiscall PFEMSolver::~PFEMSolver(void)" (??1PFEMSolver@@UAE@XZ)
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_qrsol referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_gaxpy referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_add referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_multiply referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_spalloc referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_compress referenced in function "public: virtual struct cs_sparse * __thiscall PFEMSolver::setMatIDs(void)" (?setMatIDs@PFEMSolver@@UAEPAUcs_sparse@@XZ)
2>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_entry referenced in function "public: virtual struct cs_sparse * __thiscall PFEMSolver::setMatIDs(void)" (?setMatIDs@PFEMSolver@@UAEPAUcs_sparse@@XZ)
2>.\..\..\bin/openSeesTk.exe : fatal error LNK1120: 8 unresolved externals
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:01.34
3>------ Build started: Project: OpenSees, Configuration: Debug Win32 ------
3>Build started 9/29/2012 1:21:06 AM.
3>InitializeBuildStatus:
3> Touching ".\..\..\obj\openSees\debug\OpenSees.unsuccessfulbuild".
3>ClCompile:
3> All outputs are up-to-date.
3>ManifestResourceCompile:
3> All outputs are up-to-date.
3>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_spfree referenced in function "public: virtual __thiscall PFEMSolver::~PFEMSolver(void)" (??1PFEMSolver@@UAE@XZ)
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_qrsol referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_gaxpy referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_add referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_multiply referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_spalloc referenced in function "public: virtual int __thiscall PFEMSolver::solve(void)" (?solve@PFEMSolver@@UAEHXZ)
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_compress referenced in function "public: virtual struct cs_sparse * __thiscall PFEMSolver::setMatIDs(void)" (?setMatIDs@PFEMSolver@@UAEPAUcs_sparse@@XZ)
3>system.lib(PFEMSolver.obj) : error LNK2019: unresolved external symbol _cs_entry referenced in function "public: virtual struct cs_sparse * __thiscall PFEMSolver::setMatIDs(void)" (?setMatIDs@PFEMSolver@@UAEPAUcs_sparse@@XZ)
3>.\..\..\bin/openSees.exe : fatal error LNK1120: 8 unresolved externals
3>
3>Build FAILED.
3>
3>Time Elapsed 00:00:00.73
========== Build: 0 succeeded, 3 failed, 23 up-to-date, 0 skipped ==========
jinlu
Posts: 47
Joined: Fri Jul 14, 2006 5:50 pm
Location: UC San Diego

Re: Could not build the latest version on Visual Studio 2010

Post by jinlu »

OK. Figured out.

Added all *.c files of "OTHER\CSPARSE" to Source Files of project "system".

Added all *.cpp files of "SRC\api" to Source Files of project "domain".

Not sure if this is the "professional" way to do that. But I was able to build those 3 executable files.

Cheers!
Jinchi
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Could not build the latest version on Visual Studio 2010

Post by fmk »

sorry for the delay. it is fixed now.
jinlu
Posts: 47
Joined: Fri Jul 14, 2006 5:50 pm
Location: UC San Diego

Re: Could not build the latest version on Visual Studio 2010

Post by jinlu »

Thanks Frank. Now it works like a charm.
feijieyao
Posts: 1
Joined: Fri Mar 11, 2011 5:53 pm
Location: Southeast University

Re: Could not build the latest version on Visual Studio 2010

Post by feijieyao »

jinlu wrote:
> OK. Figured out.
>
> Added all *.c files of "OTHER\CSPARSE" to Source Files of project
> "system".
>
> Added all *.cpp files of "SRC\api" to Source Files of project
> "domain".
>
> Not sure if this is the "professional" way to do that. But I was
> able to build those 3 executable files.
>
> Cheers!
> Jinchi


Hello, I encountered the same problem, But I cannot find a folder named "CSPARSE" in OTHER. My source is OpenSees2.2.2. Could you please tell me where it is? Thank you very much!

By the way, I used this website to download my OpenSees source code: http://opensees.berkeley.edu/OpenSees/d ... wnload.php

Guodong Zhang
macgator
Posts: 1
Joined: Thu Jan 10, 2013 7:22 am
Location: Toronto, Canada
Contact:

Re: Could not build the latest version on Visual Studio 2010

Post by macgator »

I was able to get it going with the fixed version. Thanks for all your work on this!
Save with this Hostgator Coupon
Post Reply