Réf. : [boost] Réf. : Re: [filesystem] building for cygwin
Finally, I had a close look inside filesystem files and I discovered that to compile for cygwin 2 flags must be set: BOOST_POSIX_API and BOOST_POSIX_PATH! If only BOOST_POSIX_API, BOOST_WINDOWS_PATH
is set automatically. Why??? This is a strange behaviour.
Then:
- either change the doc and add that for cygwin compilation, BOOST_POSIX_PATH must be set as BOOST_POSIX_API,
- or change filesystem/config.hpp so that BOOST_POSIX_PATH is automatically set when BOOST_POSIX_API is set (I would prefer this solution).
Regards,
F. Bron
frederic.bron@alca
n.com Pour : boost@lists.boost.org
Envoyé par : cc : (ccc : Frederic Bron/Alcan)
boost-bounces@list Objet : [boost] Réf. : Re: [filesystem] building for cygwin
s.boost.org
08/07/2007 19:32
Veuillez répondre
à boost
My problem is that I compiled 1.34.0 with -DBOOST_POSIX_API and it did not produce what it was suppose to produce, i.e. posix paths.
F. Bron
Lewis Hyatt
Maybe the developpers list can help? I try to have the POSIX behaviour under cygwin but get only the windows behaviour even if I compile the library and program with -DBOOST_POSIX_API. What should I do?
Regards
F. Bron
frederic.bron@alcan.com Envoyé par : Pour : boost-users@lists.boost.org boost-users-bounces@list cc : (ccc : Frederic Bron/Alcan) s.boost.org Objet : [Boost-users] Réf. : [filesystem] building for cygwin
07/07/2007 15:13 Veuillez répondre à boost-users
Unbelievable! It does not work anymore!!! I have rebuild again the library to be sure that g++ received well -DBOOST_POSIX_API and it does. However, here is the output of the small program printed below:
$ g++ -DBOOST_POSIX_API -I/cygdrive/d/Softs/boost_cyg/include -o toto toto.cc /cygdrive/d/Softs/boost_cyg/lib/libboost_filesystem.a $ ./toto ..\toto\x.xml \cygdrive\d\toto\x.xml
should be ../toto/x.xml /cygdrive/d/toto/x.xml
What should I do?
F. Bron
#include <iostream> #include
namespace fs=boost::filesystem ;
int main() { fs::path x("../toto/x.xml") ; std::cout << x.file_string() << std::endl ; fs::path y("/cygdrive/d/toto/x.xml") ; std::cout << y.file_string() << std::endl ; return 0 ; }
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.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (1)
-
frederic.bron@alcan.com