[Coin-discuss] Error when compiling with Visual Studio using the CoinBinary project

Andreas Lundell andreas.lundell at abo.fi
Tue Dec 10 08:55:19 EST 2013


It seems that everything is working now. I tested all three packages.

Thanks for your help!

Andreas


On 10.12.2013 00:34, Ted Ralphs wrote:
> I now updated the MSVC11 package as well.
>
> Cheers,
>
> Ted
>
>
> On Mon, Dec 9, 2013 at 4:25 PM, Ted Ralphs <ted at lehigh.edu 
> <mailto:ted at lehigh.edu>> wrote:
>
>     For some reason, the OS library was not included in the
>     distribution. I updated the packages for MSVC9 and MSVC10. Can you
>     check whether it works now?
>
>     Cheers,
>
>     Ted
>
>
>     On Thu, Dec 5, 2013 at 10:17 AM, Andreas Lundell
>     <andreas.lundell at abo.fi <mailto:andreas.lundell at abo.fi>> wrote:
>
>         Hi all,
>
>         The last couple of days I've been trying to compile a simple
>         test project in Visual Studio using the binary libraries from
>         the CoinBinary/CoinAll project (COIN-OR-1.7.3) dated 26-27
>         November 2013.
>
>         If I use the following code:
>
>             #include "OSInstance.h"
>             ...
>             int _tmain(int argc, _TCHAR* argv[])
>             {
>                 OSInstance * instance;
>                 instance = new OSInstance();
>                 return 0;
>             }
>
>         The compiler gives back something like "error LNK2019:
>         unresolved external symbol "public: __thiscall
>         OSInstance::OSInstance(void)" (??0OSInstance@@QAE at XZ)
>         referenced in function _wmain".
>
>         The same is true if I change the OSInstance to some other
>         class. I've included the libraries in the lib-folder of the
>         COIN-OR-1.7.3 package and the header files in the
>         include-folder are also used by the compiler.  I've also tried
>         the different versions available of the package (msvc9-11) in
>         combination with the corresponding version of Visual Studio
>         (2008, 2010 and 2012).
>
>         The binary files bundled with the package works well.
>
>         Any ideas what's wrong and how to fix it?
>
>         Regards,
>
>         Andreas Lundell
>         _______________________________________________
>         Coin-discuss mailing list
>         Coin-discuss at list.coin-or.org
>         <mailto:Coin-discuss at list.coin-or.org>
>         http://list.coin-or.org/mailman/listinfo/coin-discuss
>
>
>
>
>     -- 
>     Dr. Ted Ralphs
>     Associate Professor, Lehigh University
>     (610) 628-1280 <tel:%28610%29%20628-1280>
>     ted 'at' lehigh 'dot' edu
>     coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
>
>
>
>
> -- 
> Dr. Ted Ralphs
> Associate Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>

-- 

Post doc researcher
Optimization and Systems Engineering Research Group

Process Design and Systems Engineering
Åbo Akademi University
Biskopsgatan 8,
FIN-20500 Turku, Finland

E-mail: andreas.lundell at abo.fi



More information about the Coin-discuss mailing list