Compiling the ping demo (SimD v0.10) with Visual Studio 2010, ping-sub.exe is
failed to build because of linker error LNK2019: unresolved external symbol ...
(referenced to 'const std::string& dds::retcode2string(int)' and 'static void
Assert::precondition(bool, const std::string&)' functions).
The possible solutions are:
1. In dds/src/types.hpp the retcode2string function declaration (line 7) does
not start with the SIMD_API macro. The correct line:
SIMD_API const std::string& retcode2string(::DDS::ReturnCode_t rc);
2. In dds/src/config.hpp before the dds::Assert typedefs (lines 65 and 67) a
template instantiation is needed by adding the following two lines:
before 65:
template AssertBase<NullAssertImpl>;
before 67:
template AssertBase<SimpleAssertImpl>;
Original issue reported on code.google.com by sczobor on 2 May 2012 at 10:58
Original issue reported on code.google.com by
sczobor
on 2 May 2012 at 10:58Attachments: