[Insight-developers] sys/param.h

Lorensen, William E (Research) lorensen@crd.ge.com
Thu, 13 Mar 2003 12:30:31 -0500


I think they need a MAXPATHLEN because it is part of a fixed size header. It
really should be a fixed #.

-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman@kitware.com]
Sent: Thursday, March 13, 2003 12:26 PM
To: norman-k-williams@uiowa.edu; Robert Tamburo
Cc: Insight Developers List
Subject: Re: [Insight-developers] sys/param.h


A better approach might be to use dynamic std::string for path names.
Any time you hard code this size of an array on the stack, you are asking
for trouble.

-Bill


At 11:33 AM 3/13/2003, Kent Williams wrote:
>sys/param.h is included to pick up the system constant MAXPATHLEN --
>I'm going to punt on picking it up from the environment/OS and just put a 
>constant in itkIOCommon.h.  This will be checked in as soon as kitware.com 
>wakes up again.
>
>A 'right now' fix is to comment out the include and just #define MAXPATHLEN
>
>On Thursday 13 March 2003 02:41 am, Robert Tamburo wrote:
>> The GE Image IO related classes include param.h, i.e.
>> D:\Insight\Code\IO\itkGEImageHeader.h(21) : fatal error C1083: Cannot
open
>> include file: 'sys/param.h': No such file or directory
>>
>> I don't have this file in my Visual Studio 6.0 include path. Am I
supposed
>> to? If so, where can I download it?
>>
>> Thanks,
>> Rob
>>
>> _______________________________________________
>> Insight-developers mailing list
>> Insight-developers@public.kitware.com
>> http://public.kitware.com/mailman/listinfo/insight-developers
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers 



_______________________________________________
Insight-developers mailing list
Insight-developers@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers