|
Boost Users : |
Subject: Re: [Boost-users] boost 1.44.0 undefined reference to boost::filesystem2::no_check
From: Igor R (boost.lists_at_[hidden])
Date: 2010-10-12 12:42:34
>> No, that issue is a bit different and I have already included
>> <boost/filesystem.hpp>
>>
>> I am again posting the code:
>> --------------------------------Sample application source:
>> #include<stdio.h>
>> #include<boost/filesystem.hpp>
>>
>> int main()
>> {
>> Â std::string m_FileName(boost::filesystem::path("testfile1.txt",
>> boost::filesystem::no_check).native_file_string());
>>
>> Â printf("Testboost.....%s\n", m_FileName.c_str());
>> Â return 0;
>> }
>> --------------------------------
>
> Compile & Link --> generate test.exe:
> Â g++ -o test.exe test.cpp -lboost_filesystem
>
> Start (here on Linux):
> Â ./test.exe
> Â Â prints:
> Â Testboost.....testfile1.txt
>
> IMHO it seems to work, so what was your problem?
FWIW, I've successfully compiled and linked the above code in MSVC10.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net