Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4368] Re: cmath.h

Date2004-03-18 03:39
From"Michael Gogins"
Subject[CSOUND-DEV:4368] Re: cmath.h
I compile my Cygwin build with Cygwin's FLTK (and omit mno-cygwin). You
would have to install a non-Cygwin FLTK to get a mingw link.

::atanl is in the C runtime library namespace, std::atan1 is in the std C++
library namespace - if that helps.

If std:: things are undefined at link time, you need to link with libstd++.a
and maybe libsup++.a.

============================================
Michael Gogins
gogins at pipeline period com
Irreducible Productions
CsoundVST, an extended version of Csound for programming music and sound
Available at http://sourceforge.net/projects/csound/
============================================


----- Original Message ----- 
From: "stevenyi" 
To: "Csound Developers Discussion List" 
Sent: Wednesday, March 17, 2004 10:20 PM
Subject: [CSOUND-DEV:4367] Re: cmath.h


> Hi Michael,
>
> I'm not on the winXP computer at the moment, but it was happening when
> compiling widgets.cpp.  It was complaining of things being undefined,
> for example "::atanl" (which was weird considering the file has it as
> std::atanl).  I'm actually not including cmath.h; it was being included
> from fstream and some other files.  I do not think Boost is installed on
> that computer but will check again tomorrow.
>
> Another strange thing was that if I changed the include directory order
> to have /usr/include and /usr/local/include before ./H, I started
> getting errors that other things weren't being defined from H/cmath.h.
>
> If I compile with cygwin regularly there are no compilation problems but
> I then get errors when linking in fltk which I've compiled with
> -mno-cygwin (as expected).
>
> Apologies I can't be more explicit as I'm not on that machine at the
> moment.  I'll spend more time looking at it tomorrow.
>
> steven
>
>
>
> On Wed, 2004-03-17 at 18:32, Michael Gogins wrote:
> > Are you including "cmath" or "cmath.h?"
> >
> > The std namespace uses "cmath" with the ".h", so if you are including
> > "cmath.h" in the H directory I don't see how that could cause a problem.
> >
> > If you have installed boost, there is a cmath compatibility file among
the
> > boost headers that could conceivably conflict with
> > /usr/include/c++/3.3.1/cmath, but I don't think even this would cause a
> > problem.
> >
> > So I don't think there's a need to rename the file.
> >
> > What exactly is your error message?
>
>

Date2004-03-18 06:07
Fromstevenyi
Subject[CSOUND-DEV:4369] Re: cmath.h
Thanks for the information! Hopefully should be able to get through it
tomorrow for -mno-cygwin, and if so, I'll commit my SConstruct changes. 
For FLTK, I did compile from scratch using -mno-cygwin as I was planning
on compiling csound with -mno-cygwin.  (I also missed that it was in the
cygwin repository of packages =o ).  

I still think H/cmath.h should get renamed but it's not a big deal so
will drop it for now.

Thanks again,
steven


On Wed, 2004-03-17 at 19:39, Michael Gogins wrote:
> I compile my Cygwin build with Cygwin's FLTK (and omit mno-cygwin). You
> would have to install a non-Cygwin FLTK to get a mingw link.
> 
> ::atanl is in the C runtime library namespace, std::atan1 is in the std C++
> library namespace - if that helps.
> 
> If std:: things are undefined at link time, you need to link with libstd++.a
> and maybe libsup++.a.
> 
> ============================================
> Michael Gogins
> gogins at pipeline period com
> Irreducible Productions
> CsoundVST, an extended version of Csound for programming music and sound
> Available at http://sourceforge.net/projects/csound/
> ============================================
> 
> 
> ----- Original Message ----- 
> From: "stevenyi" 
> To: "Csound Developers Discussion List" 
> Sent: Wednesday, March 17, 2004 10:20 PM
> Subject: [CSOUND-DEV:4367] Re: cmath.h
> 
> 
> > Hi Michael,
> >
> > I'm not on the winXP computer at the moment, but it was happening when
> > compiling widgets.cpp.  It was complaining of things being undefined,
> > for example "::atanl" (which was weird considering the file has it as
> > std::atanl).  I'm actually not including cmath.h; it was being included
> > from fstream and some other files.  I do not think Boost is installed on
> > that computer but will check again tomorrow.
> >
> > Another strange thing was that if I changed the include directory order
> > to have /usr/include and /usr/local/include before ./H, I started
> > getting errors that other things weren't being defined from H/cmath.h.
> >
> > If I compile with cygwin regularly there are no compilation problems but
> > I then get errors when linking in fltk which I've compiled with
> > -mno-cygwin (as expected).
> >
> > Apologies I can't be more explicit as I'm not on that machine at the
> > moment.  I'll spend more time looking at it tomorrow.
> >
> > steven
> >
> >
> >
> > On Wed, 2004-03-17 at 18:32, Michael Gogins wrote:
> > > Are you including "cmath" or "cmath.h?"
> > >
> > > The std namespace uses "cmath" with the ".h", so if you are including
> > > "cmath.h" in the H directory I don't see how that could cause a problem.
> > >
> > > If you have installed boost, there is a cmath compatibility file among
> the
> > > boost headers that could conceivably conflict with
> > > /usr/include/c++/3.3.1/cmath, but I don't think even this would cause a
> > > problem.
> > >
> > > So I don't think there's a need to rename the file.
> > >
> > > What exactly is your error message?
> >
> >
> 
>