[FlopCpp] error making Flopc++ example on cygwin
Vishy Jeet
vishv.jeet at gmail.com
Tue Feb 20 15:09:29 EST 2007
When I am making FlopCpp example on cygwin, I get an error for _isnan but I
can compile them using the following command line:
g++ -mno-cygwin xbsl.cpp -o xbsl -I../../include -L../../lib
-Wl,-rpath,../../lib -lFlopCpp
-lOsiCbc -lCbc -lOsiClp -lClp -lCgl -lOsi -lCoinUtils
I just changed the make file to produce the following command but I get lot
of errors!
g++ -g -I../../include -L../../lib -Wl,-rpath,../../lib -lFlopCpp -lOsiCbc
-lCbc -lOsiClp -lClp -lCgl
-lOsi -lCoinUtils -mno-cygwin xbsl.cpp -o xbsl
Can someone tell whats the problem here...
I guess "_isnan" thing is taken care of by "-mno-cygwin" but here something
else (perhaps the order) is wrong.
regards,
vishy
On 2/19/07, Vishy Jeet <vishv.jeet at gmail.com> wrote:
>
>
> I am making changes in config_coinutils.h which defines
> #define MY_C_ISNAN _isnan
>
> Changed version
> #define MY_C_ISNAN std::isnan
>
> I will let you know what happnes.
>
> regards,
> vishy
>
>
>
>
> On 2/19/07, J P Fasano <jpfasano at us.ibm.com> wrote:
> >
> > OK.
> > I suspect I was looking at a very old copy of CoinFinite.hpp.
> >
> > I think the problem is that your version of the code is using isnan on
> > cygwin when it should be using std::isnan.
> > I don't know where this stuff gets set, but perhaps you can grep for
> > isnan
> > and see where it is defined and how it is defined.
> > You may be able to change this definition to use std::isnan.
> >
> > Of course there is a chance that I'm totaly wrong and this is not the
> > problem at all.
> >
> > JP Fasano
> > (914)945-1324 (tie line 862-1324)
> >
> >
> >
> > "Vishy Jeet"
> > < vishv.jeet at gmail
> >
> > .com> To
> > J P Fasano/Watson/IBM at IBMUS,
> > 02/19/2007 07:40 flopcpp at list.coin-or.org
> > PM
> > cc
> >
> >
> > Subject
> > Re: [FlopCpp] error making Flopc++
> >
> > example on cygwin
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Thanks for your response. I don't have this block (specifically for
> > cygwin32) anywhere in CoinFinite.hpp I have. I am attaching the file
> > here.
> >
> > regards,
> > vishy
> >
> > On 2/19/07, J P Fasano, <jpfasano at us.ibm.com > wrote:
> > In CoinFinite.hpp there are a few lines that look like:
> > #if defined(__CYGWIN32__)
> > # define CoinFinite finite
> > # define CoinIsnan std::isnan
> > #endif
> > # define CoinIsnan isnan
> > prefix to isnan
> > (914)945-1324 (tie line 862-1324)
> >
> >
> >
> > "Vishy Jeet"
> > <vishv.jeet at gmail
> > To
> > Sent by: flopcpp at list.coin-or.org
> > flopcpp-bounces at l cc
> >
> > ist.coin-or.org
> >
> > Subject
> >
> > [FlopCpp] error making Flopc++
> > 02/19/2007 12:28 example on cygwin
> > PM
> >
> > >> ./configure -C --enable-doscompile
> >
> > instead of
> > install
> > following
> > error:
> >
> > >> make xbsl
> > -lOsiClp -lClp
> > xbsl
> > from ../../include/OsiCbcSolverInterface.hpp:10,
> > from xbsl.cpp:6:
> > (first use this function)
> > undeclared identifier is
> > in.)
> > make: *** [xbsl] Error 1
> > http://www.mayanksahu.net.
> > .
> > list
> > http://list.coin-or.org/mailman/listinfo/flopcpp
> >
> >
> >
> >
> >
> > --
> > --vishy
> > http://www.mayanksahu.net. (See attached file: CoinFinite.hpp)
> >
>
>
>
> --
> --vishy
>
> _______________________
> Youngest Music Meastro
> Mayank Sahu
> http://www.mayanksahu.net
>
--
--vishy
_______________________
Youngest Music Meastro
Mayank Sahu
http://www.mayanksahu.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20070220/8d9dddad/attachment.html
More information about the FlopCpp
mailing list