[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]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

c++ Hjælp til at forstå fejlmeldinger



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.





 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-05-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *