[MsVisualStudio] Link error message

Julien Granger juliengranger at gmail.com
Sun Mar 28 10:22:04 EDT 2010


Hello - I am trying to run Osiexample.cpp in MS Visual Studio 2008 and get
the error message below.

Linking...

CoinOR Example.obj : error LNK2019: unresolved external symbol "public:
__thiscall OsiClpSolverInterface::OsiClpSolverInterface(void)"
(??0OsiClpSolverInterface@@QAE at XZ) referenced in function _main

C:\Documents and Settings\usajxg3\My Documents\Visual Studio
2008\Projects\CoinOR Example\Debug\CoinOR Example.exe : fatal error LNK1120:
1 unresolved externals

Could you please give me a hint as to the cause of the error? My steps were:

- download and unzip "CoinAll-1.3.0-win32-msvc9" in "C:\Program
Files\coin\CoinAll-1.3.0-win32-msvc9"
- copy and paste all ".lib" files from the above directory into
"C:\ProgramFiles\Microsoft Visual Studio 9.0\VC\lib"
- create a "CoinOR Example" Solution project in MSVS, add Osiexample.cpp as
source code
- in Project properties, set "C:\Program
Files\coin\CoinAll-1.3.0-win32-msvc9\include\coin" in
C/C++>General>Additional include directories
- in Project properties, set "libOsi.lib libClp.lib libOS.lib" in
Linker>Input>Additional dependencies
- build solution. The error message above appears

Thank you,
-- Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/msvisualstudio/attachments/20100328/d4b8076c/attachment.html 


More information about the MSVisualStudio mailing list