Boost logo

Boost :

From: frederic.bron_at_[hidden]
Date: 2007-07-09 07:07:12


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_at_alca
                      n.com Pour : boost_at_[hidden]
                      Envoyé par : cc : (ccc : Frederic Bron/Alcan)
                      boost-bounces_at_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
                      <lhyatt_at_princeton. Pour : boost_at_[hidden]
                      edu> cc : (ccc : Frederic Bron/Alcan)
                      Envoyé par : Objet : Re: [boost] [filesystem] building for cygwin
                      boost-bounces_at_list
                      s.boost.org

                      08/07/2007 18:34
                      Veuillez répondre
                      à boost

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
>

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

_______________________________________________
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