On Wed, Apr 17, 2013 at 9:09 AM, Jason Roehm <jasonr@3db-labs.com> wrote:
What problems do you run into specifically? I have code that uses filesystem and std::string in the same source file without any issue.
It's a mystery to me. In one module I either include <boost/filesystem.hpp> and setup a path, then cannot see std::string from <string>. In another module it's just the opposite. std::string but no boost::filesystem::path. Additionally, CodeBench is telling me boost::filesystem::path could not be resolved. Also std::string could not be resolved. It's a "Semantic Error" which I take it is possibly a linker confusion? Description Resource Path Location Type Type 'boost::filesystem::path' could not be resolved virtualdirectory.cpp /detector/filesystem/filesystem line 14 Semantic Error Description Resource Path Location Type Type 'std::string' could not be resolved detectionlogger.h /detector/logger/logger line 42 Semantic Error I am linking against boost statically (preferred, for now). boost 1.53.0 GCC 4.7.2 C++11 standard (if possible) Building through Sourcery CodeBench on a Linux host, targeting ArchLinux ARM. Any ideas?
Jason
On 04/17/2013 10:02 AM, Michael Powell wrote:
Hello,
Or vice versa. When I include <boost/filesystem.hpp> and <string>, uses of std::string fall over it seems. As long as I do not include filesystem.hpp, it's okay.
Would like to use the filesystem features if possible, but I also want to keep track of some strings, possible override operator<< for various requirements (TBD). Is this a boost bug? Or what do I need to do to make it work?
I am building against a static library, multithreading AFAIK, targeting ArchLinux ARM. Building against a GCC 4.7.2 toolchain (CodeBench).
Thank you...
Regards,
Michael Powell _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users