Boost logo

Boost :

From: Lewis Hyatt (lhyatt_at_[hidden])
Date: 2007-07-08 12:34:21


I know it's possible because the cygwin package maintainer for boost
re-compiled the boost 1.33.1 package for me a while ago to include
-DBOOST_POSIX_API, to get the expected behavior on cygwin. If you post
this to the cygwin mailing list (you can get at
http://news.gmane.org/gmane.os.cygwin/ if you don't want to subscribe to
the mailing list), I'm sure he can help you out.

-Lewis

frederic.bron_at_[hidden] wrote:
> 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_at_[hidden]
> Envoyé par : Pour : boost-users_at_[hidden]
> boost-users-bounces_at_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 <boost/filesystem.hpp>
>
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk