[Coin-discuss] How to solve the build errors in MS Visual C++?

Tony Wu tony.wu.llnl at gmail.com
Mon Nov 28 18:50:03 EST 2005


Hi,

To build the project "COIN\Win\ClpSamplesMinimum\ClpSamplesMinimum.dsp"
in Microsoft Visual Studio .NET 2003 (I do not have VC++ 6),

I first run a .bat file as following:
set COIN_USE=COIN_USE_CLP
"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe"

Then, in Microsoft Visual Studio .NET 2003, I opened
COIN\Win\ClpSamplesMinimum\ClpSamplesMinimum.dsp

The Microsoft Visual Studio .NET 2003 let me convert the project to a
Microsoft Visual Studio .NET 2003 project.

Then I build the project and get the following warnings and errors:
-- Is there file missed? or I did not set the environment correctly?

At the end of the report, there are four
ClpSamplesMinimum error LNK2019:
-- Why did this happen?

Thanks a lot -- Tony

here is the building report ----

d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedVectorBase.hpp(66): warning
C4290: C++ exception specification ignored except to indicate a function is
not __declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedVectorBase.hpp(74): warning
C4290: C++ exception specification ignored except to indicate a function is
not __declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedVectorBase.hpp(86): warning
C4290: C++ exception specification ignored except to indicate a function is
not __declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedVectorBase.hpp(115): warning
C4290: C++ exception specification ignored except to indicate a function is
not __declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedVectorBase.hpp(216): warning
C4290: C++ exception specification ignored except to indicate a function is
not __declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinShallowPackedVector.hpp(96): warning
C4290: C++ exception specification ignored except to indicate a function is
not __declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(116): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(123): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(129): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(136): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(166): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(169): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(171): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(177): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(184): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(192): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(205): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(212): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(220): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(234): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(240): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(289): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(295): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(424): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(428): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(433): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(436): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(440): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(445): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(463): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(469): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(476): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(483): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(492): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Coin\include\CoinPackedMatrix.hpp(496): warning C4290:
C++ exception specification ignored except to indicate a function is not
__declspec(nothrow)
d:\WU26\COIN-OR\COIN\Clp\include\ClpMatrixBase.hpp(130): warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
ClpSamplesMinimum warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification
ClpSamplesMinimum error LNK2019: unresolved external symbol "public:
__thiscall ClpSimplex::~ClpSimplex(void)" (??1ClpSimplex@@QAE at XZ) referenced
in function _main
ClpSamplesMinimum error LNK2019: unresolved external symbol "public: int
__thiscall ClpSimplex::primal(int,int)" (?primal at ClpSimplex@@QAEHHH at Z)
referenced in function _main
ClpSamplesMinimum error LNK2019: unresolved external symbol "public: int
__thiscall ClpSimplex::readMps(char const *,bool,bool)" (
?readMps at ClpSimplex@@QAEHPBD_N1 at Z) referenced in function _main
ClpSamplesMinimum error LNK2019: unresolved external symbol "public:
__thiscall ClpSimplex::ClpSimplex(void)" (??0ClpSimplex@@QAE at XZ) referenced
in function _main
ClpSamplesMinimum fatal error LNK1120: 4 unresolved externals



On 11/17/05, J P Fasano <jpfasano at us.ibm.com> wrote:
>
> Tony,
>   Are you already using the MS Visual C++ V6 build process described in
> COIN\Win\readme.txt?
>   If not, then you might want to try using it (see COIN\Win\readme.txt).
>
>   I just added another project
> (COIN\Win\ClpSamplesMinimum\ClpSamplesMinimum.dsp) for building
> COIN\Clp\Samples\minimum.cpp.
>
> JP Fasano
> jpfasano at us.ibm.com
> (914)945-1324  (tie line 862-1324)
> COIN-OR www.coin-or.org
>
>
>
>             Tony Wu
>             <tony.wu.llnl at gma
>             il.com>                                                    To
>             Sent by:                  coin-discuss at list.coin-or.org
>             coin-discuss-boun                                          cc
>             ces at list.coin-or.         tony.wu.llnl at gmail.com
>             org                                                   Subject
>                                       [Coin-discuss] How to solve the
>                                       build errors in MS Visual C++?
>             11/17/2005 07:53
>             PM
>
>
>             Please respond to
>             Discussions about
>                open source
>               software for
>                Operations
>                 Research
>
>
>
>
>
>
> Hi,
>
> In the MS Visual C++, I set up a project with the source file
> COIN\Clp\Samples\minimum.cpp
>
> On the tools\options dialog window of MS Visual C++,
> At the Projects -> VC++ Directories : Include files, I added the following
> folders:
> COIN\Osi\include
> COIN\Clp\include
> COIN\Coin\include
> COIN\Cgl\include
> At the Projects -> VC++ Directories : Sources files, I added the following
> folders:
> COIN\Osi
> COIN\Clp
> COIN\Coin
> COIN\Cgl
>
> When I try to build the project, it reports:
> TestCLP5 error LNK2020: unresolved token (0A00000A) ClpSimplex.__dtor
> TestCLP5 fatal error LNK1120: 1 unresolved externals
>
> Does anybody have suggetions on solving this problem?
>
> Thanks in advance!
> Tony
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>
>
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20051128/a5681ce2/attachment.html>


More information about the Coin-discuss mailing list