Re: [Boost-users] [Boost.Filesystem] Program can't run under Win 98

Hi,
I have tried to rebuild boost.filesystem with D_WIN32_WINNT set to 0x0400 (with cxxflags) but it seems that it (cxxflags) was ignored and filesystem libs was build as without any cxxflags option.
Command I run:
bjam cxxflags=-D_WIN32_WINNT=0x0400 --with-filesystem toolset=msvc
Are these flags (cflags, cxxflags) working?
thanks
Trigve
----- Original Message ----
From: Todd Greer
I've got a problem running application that uses boost.filesystem on win 98. I'm compiling it on Win XP SP2. The problem is the CreateHardLinkA function. It seems that this functions was added lately to kernel32.dll (Windows 2000 I think). Is there any solution to resolve this problem?
Anyway I don't use any links operations from boost.filesystem so I don't care about this function. I'm using boost 1.34. With boost 1.33.1 everything was working fine ( I think there wasn't code for link operations).
It would appear that #defining _WIN32_WINNT to 0x400 or less when compiling the filesystem library should exclude that code (and some related code with the same problem). I believe this can be done by setting cxxflags to -D_WIN32_WINNT when building, but I haven't tried it myself, and don't know much about the boost build system. Unless this problem is fixed for 1.34.1, I'll be learning the details myself in a few weeks, as it will otherwise block our upgrading. Have you filed a bug report at svn.boost.org? -- Todd _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users ____________________________________________________________________________________ Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

The best is to modify the user-config.jam file:
using msvc : : : <cflags>-D_WIN32_WINNT=0x0400 <cxxflags>-D_WIN32_WINNT=0x0400 <compilerflags>-D_WIN32_WINNT=0x0400 ;
F. Bron
Trigve Siver
I've got a problem running application that uses boost.filesystem on win 98. I'm compiling it on Win XP SP2. The problem is the CreateHardLinkA function. It seems that this functions was added lately to kernel32.dll (Windows 2000 I think). Is there any solution to resolve this problem?
Anyway I don't use any links operations from boost.filesystem so I don't care about this function. I'm using boost 1.34. With boost 1.33.1 everything was working fine ( I think there wasn't code for link operations).
It would appear that #defining _WIN32_WINNT to 0x400 or less when compiling the filesystem library should exclude that code (and some related code with the same problem). I believe this can be done by setting cxxflags to -D_WIN32_WINNT when building, but I haven't tried it myself, and don't know much about the boost build system. Unless this problem is fixed for 1.34.1, I'll be learning the details myself in a few weeks, as it will otherwise block our upgrading. Have you filed a bug report at svn.boost.org? -- Todd _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users ____________________________________________________________________________________ Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users Avis : Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes en tout ou en partie. Notice: This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
participants (2)
-
frederic.bron@alcan.com
-
Trigve Siver