Opened 13 years ago

Closed 10 years ago

#31 closed defect (invalid)

Unable to execute Clp and CoinUtils static libraries with MS Visual Studio 2008

Reported by: Cloclo Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:


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


Attachments (4)

Additional_options.JPG (85.9 KB) - added by Cloclo 13 years ago.
Library_files.JPG (68.1 KB) - added by Cloclo 13 years ago.
Include_files.JPG (67.5 KB) - added by Cloclo 13 years ago.
BuildLog.htm (17.1 KB) - added by Cloclo 13 years ago.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by Cloclo

Changed 13 years ago by Cloclo

Changed 13 years ago by Cloclo

Changed 13 years ago by Cloclo

comment:1 Changed 10 years ago by lou

  • Resolution set to invalid
  • Status changed from new to closed

Looks like a common MSVS error --- multiple conflicting run time libraries. Closing, not a clp bug.

Note: See TracTickets for help on using tickets.