[Clp-tickets] [COIN-OR Linear Programming Solver] #31: Unable to execute Clp and CoinUtils static libraries with MS Visual Studio 2008
COIN-OR Linear Programming Solver
coin-trac at coin-or.org
Sun May 3 23:58:07 EDT 2009
#31: Unable to execute Clp and CoinUtils static libraries with MS Visual Studio
2008
------------------------+---------------------------------------------------
Reporter: Cloclo | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone:
Component: component1 | Version:
Keywords: |
------------------------+---------------------------------------------------
I am trying to run the first example (i.e. minimum.cpp) of the Clp
documentation using Microsoft Visual Studio 2008 and static library files
without including all the header and source files in my project. I did not
succeed. Since I am new to MS Visual Studio I am wondering what I am doing
wrong. After I unpacked the Clp package I opened project Clp.sln from the
c:/Libs/Clp/MSVisualStudio/v9 subdirectory and build the solution. The
building process ended without any error and libraries libClp.lib and
libCoinUtils.lib were founded in
C:\Libs\Clp-1.10.0\Clp\MSVisualStudio\v9\Debug. I then told the MS Visual
Studio where to find headers and library files.
Using the “Tools Menu” and picking “Options” ( and then “Projects and
Solutions” and “VC++ Directories”) I first tell MS Visual the location of
the library files (libClp.lib and libCoinUtils.lib) on a global basis :
(See Library_files.jpg)
I then tell MS Visual Studio the location of the header files (under “Show
directories for: Include files” (the last three lines of the list)
(See Include_files.jpg)
I then built a new project containing only file minimum.cpp and I add the
library names (libClp and libCoinUtils) to the linker the following way.
In the Solution Explorer I right clicked on the bolded project name and
choose “Properties” from the menu. I opened the “Configuration Properties”
node, the “Linker” node, clicked on “Command Line” and under “Additional
options”, I added the names of the two libraries.
(See Additional_options.jpg)
I added the header file “ClpSimplex.hpp” in my project and then performed
a Build Solution. I got error messages from the linker. The BuildLog file
is an attachment to this email.
I also tried to include all the Clp and CoinUtils header files in my
project and I still have the same problem.
Could you tell me what I should do to invoke correctly the Clp and
CoinUtils libraries ?
Thanks in advance
Regards,
--
Ticket URL: <https://projects.coin-or.org/Clp/ticket/31>
COIN-OR Linear Programming Solver <http://projects.coin-or.org/Clp>
A linear programming solver.
More information about the Clp-tickets
mailing list