1

I got some error when I compile flann in windows. I install the boost and gcc 4.3.3. Where is this error come from and how can I solve that?

g++ src/*.o  -o cbir -lboost_program_options -lhdf5 -lboost_filesystem -lboost_system -llog4cxx -lflann
c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: cannot find -lboost_program_options collect2: ld returned 1 exit status
Makefile:29: recipe for target `cbir' failed
make: *** [cbir] Error 1
alk
  • 69,737
  • 10
  • 105
  • 255
Aress
  • 177
  • 1
  • 5
  • 11

1 Answers1

0

boost_program_options needs to be compiled. Check out that you habe the precompiled lib avalable for your compiler. And that you set the corresponding path in your make file, e.g. In Qt .pro files:

    LIBS += -L"c:/pathToLib"
Tob
  • 286
  • 1
  • 17
  • I compiled my boost and I have several version of boost_program_options but 1- I'm not sure did in right way (boost a little tricky) 2- Where can I put that! I'm so sorry all these because I'm new in programming as u sure find out before then plz guid me in e simplest way! :P – Aress Sep 08 '13 at 00:20
  • Look at http://stackoverflow.com/questions/2726993/g-how-to-specify-preference-of-library-path to see how to set the path to the library... – Tob Sep 08 '13 at 13:35