[Coin-discuss] Compilation error
Laszlo Ladanyi
ladanyi at us.ibm.com
Thu Mar 30 20:17:34 EST 2006
I have fixed the problem (I believe :-) and committed the change. Only two
headers need to be changed, both needed to '#include <cstdio>'. Quite
frankly, I have no idea why the newer g++ versions don't complain. Now
it compiles (at least clp unitTest builds fine) with g++-2.95 on Debian.
BTW, Ted, on Debian (testing or unstable) just do
apt-get install gcc-2.95 g++-2.95 gcc-3.4 g++-3.4 gcc-4.0 g++-4.0 gcc g++
and you'll have all three versions. Seems to coexist quite nicely for me.
--Laci
On Thu, 30 Mar 2006, Ted Ralphs wrote:
> Matthew Saltzman wrote:
> > On Thu, 30 Mar 2006, Ted Ralphs wrote:
> >
> >> For a while, I was making sure COIN continued to compile with gcc 2.95,
> >> but I finally gave up on it. The last time I tried to build COIN with
> >> gcc 2.95 (a few weeks ago), it failed for me also (though with a
> >> different error). Sorry for the bad news...I think it should be possible
> >> to use a more recent version of gcc under Redhat 7.2, though. If you get
> >> the source, compile it, and install it in /usr/local, it should work
> >> fine.
> >
> >
> > You probably also need to build current C and C++ libs and link
> > statically. I think ABIs have changed significantly for recent versions
> > of the compiler.
>
> I believe that if you build and install from source, the appropriate C
> libs are also built and installed automatically. Thus, you can easily
> have multiple major versions working side by side. To be honest, I don't
> know the details of what the installer does to make this work, but it
> doesn't seem to work to install multiple version from RPMs or Debian
> packages.
>
> Cheers,
>
> Ted
> --
> Dr. Ted Ralphs
> Assistant Professor
> Industrial and Systems Engineering
> Lehigh University
> (610)758-4784
> tkralphs at lehigh.edu
> www.lehigh.edu/~tkr2
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>
More information about the Coin-discuss
mailing list