[MSVisualStudio-tickets] [BuildTools - Visual Studio] #7: Clp-1.14.1.zip not compiling under VS9

BuildTools - Visual Studio coin-trac at coin-or.org
Tue Aug 23 19:51:51 EDT 2011


#7: Clp-1.14.1.zip not compiling under VS9
-------------------------+--------------------------------------------------
  Reporter:  amas008     |       Owner:  lou   
      Type:  defect      |      Status:  new   
  Priority:  major       |   Milestone:        
 Component:  component1  |     Version:  VS2008
Resolution:              |    Keywords:        
-------------------------+--------------------------------------------------
Changes (by lou):

  * owner:  somebody => lou


Old description:

> I downloaded Clp-1.14.1.zip, extracted it, double clicked
> Clp-1.14.1\Clp\MSVisualStudio\v9\Clp.sln to open up Visual Studio 9, made
> 'clp' the default project, and tried to build the project. (I also tried
> batch-building everything, and switching to release and then to debug.) I
> get the errors for the clp project shown in the following output:
>
> 1>------ Skipped Build: Project: ClpExamplesTestQP, Configuration:
> Release Win32 ------
> 1>Project not selected to build for this solution configuration
> 2>------ Skipped Build: Project: ClpExamplesTestBarrier, Configuration:
> Release Win32 ------
> 2>Project not selected to build for this solution configuration
> 3>------ Skipped Build: Project: ClpExamplesMinimum, Configuration:
> Release Win32 ------
> 3>Project not selected to build for this solution configuration
> 4>------ Build started: Project: clp, Configuration: Release Win32 ------
> 4>Linking...
> 4>ClpMain.obj : error LNK2019: unresolved external symbol "void __cdecl
> saveSolution(class ClpSimplex const *,class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> >)"
> (?saveSolution@@YAXPBVClpSimplex@@V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
> referenced in function __catch$_main$0
> 4>ClpMain.obj : error LNK2019: unresolved external symbol "public: int
> __thiscall CbcOrClpParam::setIntParameter(class ClpSimplex *,int)"
> (?setIntParameter at CbcOrClpParam@@QAEHPAVClpSimplex@@H at Z) referenced in
> function _main
> 4>ClpMain.obj : error LNK2019: unresolved external symbol "public: int
> __thiscall CbcOrClpParam::setDoubleParameter(class ClpSimplex *,double)"
> (?setDoubleParameter at CbcOrClpParam@@QAEHPAVClpSimplex@@N at Z) referenced in
> function _main
> 4>D:\Documents\Projects\OpenSolver\Coin-OR CLP
> Solver\Clp-1.14.1\Clp-1.14.1\Clp\MSVisualStudio\v9\Release\clp.exe :
> fatal error LNK1120: 3 unresolved externals
> 4>Build log was saved at "file://d:\Documents\Projects\OpenSolver\Coin-OR
> CLP
> Solver\Clp-1.14.1\Clp-1.14.1\Clp\MSVisualStudio\v9\clp\Release\BuildLog.htm"
> 4>clp - 4 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 6 up-to-date, 3 skipped
> ==========
>
> Any suggestions? I want to use CLP within OpenSolver.org, but I need to
> be able to load .lp files which doesn't work in the pre-compiled CLP
> binary for Win32. Thanks,
>
> Andrew
>
> PS: I am running Vista.

New description:

 I downloaded Clp-1.14.1.zip, extracted it, double clicked
 Clp-1.14.1\Clp\MSVisualStudio\v9\Clp.sln to open up Visual Studio 9, made
 'clp' the default project, and tried to build the project. (I also tried
 batch-building everything, and switching to release and then to debug.) I
 get the errors for the clp project shown in the following output:
 {{{
 1>------ Skipped Build: Project: ClpExamplesTestQP, Configuration: Release
 Win32 ------
 1>Project not selected to build for this solution configuration
 2>------ Skipped Build: Project: ClpExamplesTestBarrier, Configuration:
 Release Win32 ------
 2>Project not selected to build for this solution configuration
 3>------ Skipped Build: Project: ClpExamplesMinimum, Configuration:
 Release Win32 ------
 3>Project not selected to build for this solution configuration
 4>------ Build started: Project: clp, Configuration: Release Win32 ------
 4>Linking...
 4>ClpMain.obj : error LNK2019: unresolved external symbol "void __cdecl
 saveSolution(class ClpSimplex const *,class std::basic_string<char,struct
 std::char_traits<char>,class std::allocator<char> >)"
 (?saveSolution@@YAXPBVClpSimplex@@V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
 referenced in function __catch$_main$0
 4>ClpMain.obj : error LNK2019: unresolved external symbol "public: int
 __thiscall CbcOrClpParam::setIntParameter(class ClpSimplex *,int)"
 (?setIntParameter at CbcOrClpParam@@QAEHPAVClpSimplex@@H at Z) referenced in
 function _main
 4>ClpMain.obj : error LNK2019: unresolved external symbol "public: int
 __thiscall CbcOrClpParam::setDoubleParameter(class ClpSimplex *,double)"
 (?setDoubleParameter at CbcOrClpParam@@QAEHPAVClpSimplex@@N at Z) referenced in
 function _main
 4>D:\Documents\Projects\OpenSolver\Coin-OR CLP
 Solver\Clp-1.14.1\Clp-1.14.1\Clp\MSVisualStudio\v9\Release\clp.exe : fatal
 error LNK1120: 3 unresolved externals
 4>Build log was saved at "file://d:\Documents\Projects\OpenSolver\Coin-OR
 CLP
 Solver\Clp-1.14.1\Clp-1.14.1\Clp\MSVisualStudio\v9\clp\Release\BuildLog.htm"
 4>clp - 4 error(s), 0 warning(s)
 ========== Build: 0 succeeded, 1 failed, 6 up-to-date, 3 skipped
 ==========
 }}}
 Any suggestions? I want to use CLP within !OpenSolver.org, but I need to
 be able to load .lp files which doesn't work in the pre-compiled CLP
 binary for Win32. Thanks,

 Andrew

 PS: I am running Vista.

--

Comment:

 It's hard to say when someone will get around to this. There was major
 change to the configuration include files to accommodate standard unix
 packaging requirements and that broke the Visual Studio solution files.
 The v10 (VS2010) files should work, but it's difficult to say when (if)
 someone will get around to patching the v9 files. The best advice I can
 offer (from a Solaris box :-) is to check the files used in the v10 builds
 and look at the preprocessor defines. Adjust the v9 project files to match
 the v10 files.

 As for the examples, I'm not sure I ever bothered to make all of them
 work.

 > PS: I am running Vista

 You have my sympathy  :-)

-- 
Ticket URL: <https://projects.coin-or.org/MSVisualStudio/ticket/7#comment:1>
BuildTools - Visual Studio <http://projects.coin-or.org/MSVisualStudio>
Information about building COIN-OR projects in Microsoft Visual Studio.



More information about the MSVisualStudio-tickets mailing list