# std::stringstream and DLL linking problem

This topic is 3121 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi! I have discovered a very odd problem while working on a dll plugin system. The dll and the main project is compiling and linking just fine, until I insert a stringstream call into the dll's sourcecode (which is used by a Logger class).
Quote:
 error LNK2001: unresolved external symbol "public: class std::basic_stringstream,class std::allocator > & __thiscall dA::Logger::Get(enum dA::eLogLevel)" (?Get@Logger@dA@@QAEAAV?$basic_stringstream@DU?$char_traits@D@std@@V?\$allocator@D@2@@std@@W4eLogLevel@2@@Z)
This is the error I get. By searching the web I found someone who said dll's are having trouble with templates and since stringstream is a templateclass this might be the answer. But I can't figure out a way to avoid this error. (Except not using stringstream) Does anyone have a clue what I could do to get rid of this problem?

1. 1
2. 2
3. 3
4. 4
Rutin
17
5. 5

• 11
• 37
• 12
• 12
• 11
• ### Forum Statistics

• Total Topics
631414
• Total Posts
2999950
×