Amitha Perera wrote:
>On Thu 13 May 2004, Daniel J. Jacobsen wrote:
>>Well the 'about' dialog says .NET 2002, so I guess it's 7.0. I don't
>>know how to find out which version
>>of the compiler I have.
>I'd guess the same. The VXL dashboard submission for VC7.0 has been
>missing for a few weeks because of hardware failure. However, the
>dashboard shows it building with the 7.1 compiler, with the 6.0
>compiler, with the Borland compiler, with Cygwin, and with Mingw. I'd
>be really surprised if it isn't building under 7.0.
>Try deleting the whole binary directory and running CMakeSetup. There
>shouldn't be an errors during the CMakeSetup phase. Load up the
>vxl.dsw and try to compile vcl. Post back exact errors (and what you
>did to get there).
I don't have problems building VXL, just using it. I've built it as
VC7.0 and its fine (not using contrib).
The problem is in the linking. When I try this small example:
#include <vcl_string.h> // string
#include <vcl_iostream.h> // cout
#include <vcl_vector.h> // vector
#include <vcl_algorithm.h> // copy
#include <vcl_iterator.h> // ostream_iterator
#include <vnl/vnl_matrix.h> // string
everything is fine.
Linker includes: netlib.lib vcl.lib vcsl.lib vgl.lib vgl_algo.lib
vgl_io.lib vnl.lib vnl_algo.lib vnl_io.lib.
No ignored libraries.
However, when I uncomment vnl_matrix<double> A(2,3); I get LNK2005
errors (attached: LNK2005.txt).
If I try to solve this by ignoring all default libraries, I get lots of
LNK2001 and other errors (attached: LNK2001etal.txt).
Thanks for all the help, btw!