[GAMSlinks-tickets] Re: [GAMS interface to COIN-OR solvers] #1:
error running configure script
GAMS interface to COIN-OR solvers
coin-trac at coin-or.org
Mon Mar 26 14:25:21 EDT 2007
#1: error running configure script
--------------------------+-------------------------------------------------
Reporter: bbaumrucker | Owner: stefan
Type: defect | Status: assigned
Priority: major | Milestone:
Component: component1 | Version:
Resolution: | Keywords:
--------------------------+-------------------------------------------------
Comment (by bbaumrucker):
I'm much closer now, but still having trouble. I can get the IPOPT
library to compile with no problem, but when it links IPOPT to GAMSlinks,
I get the following error message:
{{{
$ ../gamslinks-0.2.0/configure CC=cl CXX=cl F77=ifort
ADD_CXXFLAGS="-nologo -EH
sc -GR" DBG_CXXFLAGS=" " OPT_CXXFLAGS="-O2 -DNDEBUG"
COIN_SKIP_PROJECTS="Cbc Cg
l Clp Glpk"; make
### skipping to error ###
cl -O2 -DNDEBUG -nologo -EHsc -GR -o GamsIpopt.exe GamsIpopt.obj
SmagNLP.obj Sma
gJournal.obj c:/temp3/btb3/Ipopt/src/Interfaces/.libs/libipopt.lib
c:/temp3/gam
slinks-0.2.0/ThirdParty/GAMSIO/VIS/clicelib.lib
c:/temp3/gamslinks-0.2.0/ThirdPa
rty/GAMSIO/VIS/smag.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/GAMSIO/VIS/gclib.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/GAMSIO/VIS/g2d.lib -link
libifcorert.lib /N
ODEFAULTLIB:libc.lib -L/cygdrive/c/temp3/btb3/lib
LINK : warning LNK4044: unrecognized option
'/L/cygdrive/c/temp3/btb3/lib'; igno
red
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGethWnd already
defined i
n dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINTGethFrame already
define
d in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetFocus already
defined
in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetDefaultWindow
already
defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: _ChangeQWINCP already
defined i
n dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetFileName already
defin
ed in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __wgopen already defined
in dfc
onsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINClose already
defined in
dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __wgsetactive already
defined i
n dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __wggetactive already
defined i
n dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: _RegisterGetHandleQQ
already de
fined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: _RegisterGetUnitQQ
already defi
ned in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINWrite already
defined in
dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINSetIOFOCUS already
define
d in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINRead already
defined in d
fconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINSetSize already
defined i
n dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetSize already
defined i
n dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINMsgBox already
defined in
dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINRegisterInit
already defi
ned in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINRegisterEnd already
defin
ed in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __inchar already defined
in dfc
onsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINNiceExit already
defined
in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINSetFocus already
defined
in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __clearscreen already
defined i
n dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __displaycursor already
defined
in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __scrolltextwindow
already defi
ned in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __qw32used already
defined in d
fconsol.lib(for_m_console.obj)
smag.lib(smag.obj) : error LNK2019: unresolved external symbol _errno
referenced
in function _smagOpenLogC
smag.lib(sbbinfo.obj) : error LNK2001: unresolved external symbol _errno
smag.lib(fileio.obj) : error LNK2001: unresolved external symbol _errno
GamsIpopt.exe : fatal error LNK1120: 1 unresolved externals
make[3]: *** [GamsIpopt.exe] Error 2
make[3]: Leaving directory `/cygdrive/c/temp3/btb3/GAMSlinks/src/Ipopt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/temp3/btb3/GAMSlinks/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/temp3/btb3/GAMSlinks'
make: *** [all-recursive] Error 1
}}}
It appears to be a problem with the C runtime library, possibly due to a
threading issue, but I'm no expert. Any ideas?
Replying to [comment:4 stefan]:
> OK, looking at it again, it seems that CbcMain.obj depends on the Cgl
library (CglClique), but the linker is not able to bring both libraries
together. When I have this problem, I have to change the order of the
libraries in the linking command, i.e., put CbcMain.obj behind libCgl.lib.
> But since this is a problem in the Cbc build system, I cannot do much
against it, except that we can tell J. Forrest about it.
>
> For you, I hope it will be sufficient when you build only Ipopt and then
GAMSlinks/src/Ipopt.
>
> Hope this helps,
> Stefan
--
Ticket URL: <https://projects.coin-or.org/GAMSlinks/ticket/1#comment:5>
GAMS interface to COIN-OR solvers <http://projects.coin-or.org/GAMSlinks>
GAMS interface to COIN-OR solvers
More information about the GAMSlinks-tickets
mailing list