After a longish hiatus from C++ programming, I'm trying to compile a
simple ARToolkitPlus application with VS .NET but am getting linker
errors with multiply defined symbols. The only difference I can see
between this application and the ARTk+ samples is my use of a header
file that includes TrackerMultiMarker.h. Any idea where my error lies?
As always, any help is most appreciated.
Cheers,
Darran.
------ Build started: Project: CommandLine, Configuration: Release Win32
------
Compiling...
CommandLine.cpp
Linking...
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0?$basic_string@D .?$char_traits@D @s ..@@V ?$allocator@D @2 @@s ..@@Q ..@A ....@@Z )
already defined in SSAMarkerTracker.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(??1?$basic_string@D .?$char_traits@D @s ..@@V ?$allocator@D @2 @@s ..@@Q ..@X .)
already defined in SSAMarkerTracker.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(char const *)"
(??0?$basic_string@D .?$char_traits@D @s ..@@V ?$allocator@D @2 @@s ..@@Q ..@P ..@Z )
already defined in SSAMarkerTracker.obj
Release/CommandLine.exe : fatal error LNK1169: one or more multiply
defined symbols found
Build log was saved at ...
CommandLine - 4 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
--
Darran Edmundson [darran@e ............]
Interactive visualization for museums and industry
http://www.edmstudio.com
|