[Coin-symphony] unresolved external symbol
Ted Ralphs
tkralphs at lehigh.edu
Tue Mar 14 18:33:07 EST 2006
It appears as though the .dsp file for Osi is out of date. The files
OsiAuxInfo.cpp and OsiAuxInfo.hpp were added to the repository recently
and do not seem to be referenced in osiLib.dsp. Therefore, the
OsiAuxInfo class is not part of the library, as it should be. It should
be easy to add these two files to the project. I have cc'd JP Fasano,
who maintains these project files to let him know, but you should be
able to do the update yourself in the meantime. Please let us know if
this fixes the problem.
Cheers,
Ted
Ali Baharev wrote:
> I have the COIN_2006Mar13.tgz.
>
> I have Microsoft Visual Studio .NET 2003 installed (VC 7).
>
> I have created Makefile-s from the corresponding *.dsp files. I have
> attached them.
>
> I had to uncomment the following lines:
>
> #if !defined(HAS_SRANDOM)
> extern int srandom PROTO((unsigned seed));
> #endif
> #if !defined(HAS_RANDOM)
> extern long random PROTO((void));
> #endif
>
> in COIN\SYMPHONY\src\TreeManager\tm_func.c
>
> Won't it cause problems later?
>
> When linking sym_exe i get this:
>
> [...]
>
> glpmpl4.c
> glprng.c
> "symphonyLib.lib" created successfully...
> ...
> Compiling SYMPHONY main function...
> Skipping... (no relevant changes detected)
> main.c
> main compiled successfully...
> ...
> Linking...
> LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF'
> specification
> osiLib.lib(OsiSolverInterface.obj) : error LNK2019: unresolved
> external symbol "public: __thiscall OsiAuxInfo::OsiAuxInfo(void *)"
> (??0OsiAuxInfo@@QAE at PAX@Z) referenced in function "public: void
> __thiscall OsiSolverInterface::setApplicationData(void *)"
> (?setApplicationData at OsiSolverInterface@@QAEXPAX at Z)
> .\Debug\symphony.exe : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
> Stop.
>
> C:\COIN\SYMPHONY\src\WIN32>
>
> With dumpbin.exe on osiLib.lib i get this:
>
> 37B 00000000 UNDEF notype () External |
> ??0OsiAuxInfo@@QAE at PAX@Z (public: __thiscall
> OsiAuxInfo::OsiAuxInfo(void *))
>
> I don't know what it means but i guess the UNDEF(ined) is the problem.
>
> What shall i do now?
>
> Thanks in advance,
>
> Ali
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Coin-symphony mailing list
> Coin-symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-symphony
--
Dr. Ted Ralphs
Assistant Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2
More information about the Symphony
mailing list