Man, I'm not sure what I'm doing wrong with this. First of all, adding the include fixed the initial problem (thanks, Peter).

Sadly, I got another error saying that stddev is undefined on line 450 of brl/bbas/bwm/exe/bwm_bundler_to_video_site.cxx. The line is a print statement, so I tried commenting it out. This seemed to work well, but...

Now I'm getting yet another error, this time in the linking stage for bwm_main (copy-paste of the message at the end). 

Sorry to keep bothering everyone with this. Is there something wrong with my system setup that could be causing these errors? 

Linking CXX executable bwm_main
../../../../../lib/libbwm.a(bwm_site_mgr.o): In function `bwm_site_mgr::create_site()':
bwm_site_mgr.cxx:(.text+0x1fc5): undefined reference to `bwm_process::StartBackgroundTask()'
../../../../../lib/libbwm.a(bwm_site_mgr.o): In function `bwm_site_mgr::edit_site()':
bwm_site_mgr.cxx:(.text+0x3456): undefined reference to `bwm_process::StartBackgroundTask()'
../../../../../lib/libbwm.a(bwm_site_mgr.o): In function `bwm_site_process::bwm_site_process()':
bwm_site_mgr.cxx:(.text._ZN16bwm_site_processC1Ev[bwm_site_process::bwm_site_process()]+0xf): undefined reference to `bwm_process::bwm_process()'
bwm_site_mgr.cxx:(.text._ZN16bwm_site_processC1Ev[bwm_site_process::bwm_site_process()]+0x18): undefined reference to `vtable for bwm_site_process'
bwm_site_mgr.cxx:(.text._ZN16bwm_site_processC1Ev[bwm_site_process::bwm_site_process()]+0x97): undefined reference to `bwm_process::~bwm_process()'
../../../../../lib/libbwm.a(bwm_site_mgr.o): In function `bwm_site_process::~bwm_site_process()':
bwm_site_mgr.cxx:(.text._ZN16bwm_site_processD1Ev[bwm_site_process::~bwm_site_process()]+0xd): undefined reference to `vtable for bwm_site_process'
bwm_site_mgr.cxx:(.text._ZN16bwm_site_processD1Ev[bwm_site_process::~bwm_site_process()]+0x54): undefined reference to `bwm_process::~bwm_process()'
bwm_site_mgr.cxx:(.text._ZN16bwm_site_processD1Ev[bwm_site_process::~bwm_site_process()]+0x6b): undefined reference to `bwm_process::~bwm_process()'
collect2: ld returned 1 exit status

Thanks!
Andrew


On Sun, Apr 3, 2011 at 4:31 PM, Peter Vanroose <peter_vanroose@yahoo.co.uk> wrote:
Around line 6 of contrib/brl/bbas/bwm/algo/bwm_plane_fitting_lsf.cxx, add
       #include <vsol/vsol_point_2d.h>

-- Peter.


I'm trying to compile the most recent development branch, but I'm getting the following error:

In member function ‘virtual void bwm_plane_fitting_lsf::f(const vnl_vector<double>&, vnl_vector<double>&)’:
contrib/brl/bbas/bwm/algo/bwm_plane_fitting_lsf.cxx:19: error: invalid use of incomplete type ‘struct vsol_point_2d’
contrib/gel/vsol/vsol_point_2d_sptr.h:9: error: forward declaration of ‘struct vsol_point_2d’
make[2]: *** [contrib/brl/bbas/bwm/algo/CMakeFiles/bwm_algo.dir/bwm_plane_fitting_lsf.o] Error 1
make[1]: *** [contrib/brl/bbas/bwm/algo/CMakeFiles/bwm_algo.dir/all] Error 2
make: *** [all] Error 2

Any ideas what I should do to fix this? 

System: Ubuntu 10.10, gcc 4.4.5, GNU make 3.81, cmake 2.8.2 (any other information I should include?)

Thanks!
Andrew