Hi J-S,

#define's are a real pain to get around.  cpl_config.h will be
included via GDAL headers.

Perhaps we need to rename getcwd to getCurrentWorkingDirectory().

Robert.

On Wed, Mar 19, 2008 at 7:35 PM, Jean-Sébastien Guay
<[EMAIL PROTECTED]> wrote:
> Hello Maciej,
>
>
>  > Hmm, it works for me. I cannot reproduce Your problem. It looks like
>  > compiler is inlining some functions or _getcwd cannot be found in the
>  > main namespace.
>
>  I doubt it's an inlining problem because I'm getting it even in debug.
>
>
>  > Maybe changing vpb::getcwd(char *, int) to
>  > vpb::getcwd(char *, size_t) would help?
>
>  I've tracked down where it comes from:
>
>  There is a "#define getcwd _getcwd" in 3rdParty/cpl_config.h. I have no
>  idea where that include gets included, but the result is that the
>  compiler looks for vpb::_getcwd() instead of vpb::getcwd(). (gotta love
>  #defines... grrr...)
>
>  Since I don't know where the include gets included, it's hard to suggest
>  a fix... I'm pretty sure that header comes from GDAL's 3rdParty
>  dependencies, but I don't know anything else about it. Any ideas?
>
>
>
>  J-S
>  --
>  ______________________________________________________
>  Jean-Sebastien Guay    [EMAIL PROTECTED]
>                                 http://www.cm-labs.com/
>                          http://whitestar02.webhop.org/
>  _______________________________________________
>  osg-users mailing list
>  [email protected]
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to