[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
Tue Mar 27 05:13:07 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 stefan):
Thank you for not giving it up.
The "already defined" messages seem to arises because the GAMS I/O
libraries (here smag.lib) are compiled using the Compaq Fortran Compiler
while you are using the Intel Fortran Compiler. Such problems come up when
one provides precompiled libraries instead of source code :-(.
The "unresolved external symbol _errno" arises because the LIBC.lib is
taken out of the default libraries, but it is defined there. I found in
the COIN-OR build tools the lines which add the corresponding flags to the
linker and that its purpose is to fix something, here they seem to cause
problems.
Unfortunately, I do not have an Intel Fortran Compiler for Windows, so I
cannot test any changes and we have to proceed on a try-and-error basis. I
will also ask around if someone has experience with this.
As a first thing, you could go directly to
/cygdrive/c/temp3/btb3/GAMSlinks/src/Ipopt and issue the linking command
there (without using the Makefile).
Please try something like the following there:
{{{
cl -O2 -DNDEBUG -nologo -EHsc -GR -o GamsIpopt.exe GamsIpopt.obj
SmagNLP.obj SmagJournal.obj
c:/temp3/btb3/Ipopt/src/Interfaces/.libs/libipopt.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/GAMSIO/VIS/clicelib.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/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
}}}
But probably some other unresolved symbols will popup now, because the
libipopt.lib contains fortran code that probably need libraries from the
Intel Fortran Compiler.
Another command line could be:
{{{
cl -O2 -DNDEBUG -nologo -EHsc -GR -o GamsIpopt.exe GamsIpopt.obj
SmagNLP.obj SmagJournal.obj
c:/temp3/btb3/Ipopt/src/Interfaces/.libs/libipopt.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/GAMSIO/VIS/clicelib.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/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 libifcorert.lib
ifconsol.lib
}}}
(or maybe you need to specify exactly where to find the libifcorert.lib
and ifconsol.lib (somewhere where the Intel Fortran Compiler is
installed))
A third one that comes to my mind is the following:
{{{
cl -O2 -DNDEBUG -nologo -EHsc -GR -o GamsIpopt.exe GamsIpopt.obj
SmagNLP.obj SmagJournal.obj
c:/temp3/btb3/Ipopt/src/Interfaces/.libs/libipopt.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/GAMSIO/VIS/clicelib.lib
c:/temp3/gamslinks-0.2.0/ThirdParty/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 /FORCE:MULTIPLE
}}}
I hope we can get closer with one of them.
Best,
Stefan
--
Ticket URL: <https://projects.coin-or.org/GAMSlinks/ticket/1#comment:6>
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