[macstl-dev] linker error on VC7

Kyle Hegeman kyle.hegeman at gmail.com
Sun Feb 27 12:47:42 WST 2005

  • Previous message: [macstl-dev] Opinions wanted about the future directions of macstl
  • Next message: [macstl-dev] linker error on VC7
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]


Hello all,

I've been experiencing linker errors on VC7 using macstl.  Here is a
simple example of something that doesn't work for me.  Adding the
following code in a new cpp file to the benchmark project:

#include <macstl/valarray.h>

void linktest()
{
       stdext::valarray<float> test;
}

produces the following linker errors:

linktest.cpp
Linking...
linktest.obj : error LNK2005: "float __cdecl
macstl::impl::boolean_of<float>(bool)"
(??$boolean_of at M@impl at macstl@@YAM_N at Z) already defined in
benchmark.obj
linktest.obj : error LNK2005: "double __cdecl
macstl::impl::boolean_of<double>(bool)"
(??$boolean_of at N@impl at macstl@@YAN_N at Z) already defined in
benchmark.obj
build/benchmark.exe : fatal error LNK1169: one or more multiply
defined symbols found


Kyle



  • Previous message: [macstl-dev] Opinions wanted about the future directions of macstl
  • Next message: [macstl-dev] linker error on VC7
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the macstl-dev mailing list