[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Jeg forsøger uden held at få gang i et eksempel taget fra http://www.boost.org/libs/filesystem/example/simple_ls.cpp Håber, at der er en, der kan pege mig i den rigtige retning. ----- #include "boost/filesystem/operations.hpp" #include "boost/filesystem/path.hpp" #include <iostream> namespace fs = boost::filesystem; int main( int argc, char* argv[] ) { fs::path full_path( fs::initial_path() ); ------ Her dør compileringen med fejlmeldingen: **** Build of configuration Debug for project boosttest **** make -k all Building file: ../testpath.cpp Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"testpath.d" -MT"testpath.d" -o"testpath.o" "../testpath.cpp" Finished building: ../testpath.cpp Building target: boosttest Invoking: GCC C++ Linker g++ -o"boosttest" ./testpath.o ./testpath.o: In function `main': .../boost/Debug/../testpath.cpp:11: undefined reference to `boost::filesystem::initial_path()' .../boost/Debug/../testpath.cpp:14: undefined reference to `boost::filesystem::native(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' osv. osv. Jeg har uden held forsøgt mig med forskellige "using namespace" boost er installeret i /usr/include/boost Jeg arbejder med filen som et managed project i eclipse.
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |