Re: [Flightgear-devel] SGMath headers

2011-10-17 Thread Mathias Fröhlich

Hi,

On Tuesday, October 18, 2011 02:01:33 Csaba Halász wrote:
> While investigating a reported compilation error, I had a look in the
> SGMath headers. I noticed some of them don't properly include their
> dependencies (for example, SGMisc is missing SGCMath, SGGeodesy is
> missing SGVec3 and SGGeod, etc.).
> 
> I am wondering if they are supposed to be available for standalone
> use, or only via the SGMath.hxx header, which does at least try to
> include the dependencies (even though it doesn't get the order right.)
> 
> The current issue is with SGMisc as used in
> src/Environment/presets.cxx, because that doesn't happen to include
> cmath beforehand. Would be easy to fix there, but that's not the right
> way so I am not doing it.

Yes, the intention is that SGMath.hxx and SGGeometry.hxx are the public 
headers to use. The former if you just need the vector stuff and the later if 
you also want the geometry primitives and intersections between them.

Greetings

Mathias

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SGMath headers

2011-10-17 Thread Curtis Olson
On Mon, Oct 17, 2011 at 7:01 PM, Csaba Halász wrote:

> While investigating a reported compilation error, I had a look in the
> SGMath headers. I noticed some of them don't properly include their
> dependencies (for example, SGMisc is missing SGCMath, SGGeodesy is
> missing SGVec3 and SGGeod, etc.).
>
> I am wondering if they are supposed to be available for standalone
> use, or only via the SGMath.hxx header, which does at least try to
> include the dependencies (even though it doesn't get the order right.)
>

Hi Csaba,

I brought this up one time myself, and I believe the intention for the math
library is that you will include SGMath.hxx first and then everything else
is included automatically.

Regards,

Curt.
-- 
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] SGMath headers

2011-10-17 Thread Csaba Halász
While investigating a reported compilation error, I had a look in the
SGMath headers. I noticed some of them don't properly include their
dependencies (for example, SGMisc is missing SGCMath, SGGeodesy is
missing SGVec3 and SGGeod, etc.).

I am wondering if they are supposed to be available for standalone
use, or only via the SGMath.hxx header, which does at least try to
include the dependencies (even though it doesn't get the order right.)

The current issue is with SGMisc as used in
src/Environment/presets.cxx, because that doesn't happen to include
cmath beforehand. Would be easy to fix there, but that's not the right
way so I am not doing it.

-- 
Csaba/Jester

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel