[Coin-bcpdiscuss] Compiling errors
Laszlo Ladanyi
ladanyi at us.ibm.com
Thu Jun 16 10:00:13 EDT 2005
I have checked it a bit further and I have no idea what the C/C++ spec says
for this. Basically, the p->par.set_entry(key, val); call is a call to a
method returning void. So the { return p->par.set_entry(key, val); } method
body returns a value, that is a void value. So it might even be technically
correct, but then again, it might not. It's certainly confusing :-), so I have
changed all such instances to { p->par.set_entry(key, val); }. The change is
committed.
Thanks again,
--Laci
On Thu, 16 Jun 2005, Laszlo Ladanyi wrote:
> Hmmm, that is an error in BCP. I'll check what's the correct way to fix it.
> I'm surprised that g++ didn't catch it.
>
> Thanks for the bug report!
> --Laci
>
> On Thu, 16 Jun 2005, peter.chan wrote:
>
> > Hello everybody,
> > I'm new to BCP and I've spent a couple of hours trying compiling with MSVC 6.
> > Until I come across the FAQ saying that it will not work ;-(
> >
> > But I have other error messages concerning the files:
> > BCP_tm_user.cpp, BCP_cg_user.cpp, BCP_vg_user.cpp and BCP_lp_user.cpp
> > the typical code is
> >
> > void BCP_tm_user::set_param(const BCP_tm_par::chr_params key, const bool val)
> > { return p->par.set_entry(key, val); }
> >
> > A void function cannot return anything.
> > I tend to agree with MSVC.
>
> Accédez au courrier électronique de La Poste : www.laposte.net ;
> 3615 LAPOSTENET (0,34/mn) ; tél : 08 92 68 13 50 (0,34/mn)
>
>
> >
>
>
> _______________________________________________
> Coin-bcpdiscuss mailing list
> Coin-bcpdiscuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-bcpdiscuss
>
More information about the Coin-bcpdiscuss
mailing list