Robert Osfield writes: > > #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().
AFAIK all MSoft compilers support char *_getcwd( char *buffer, int maxlen ); int _chdir( const char *dirname ); http://msdn2.microsoft.com/en-us/library/sf98bd4y.aspx http://msdn2.microsoft.com/en-us/library/bf7fwze1.aspx Norman > > 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 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

