Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Nexus

Pages: 1 ... 5 6 [7]
91
General / Static release
« on: February 29, 2008, 06:04:38 pm »
In Visual C++ Express 2008, I am using SFML and linking statically with configuration "Release". Strangely, everything works if I link dynamically. I added the additional dependencies ("sfml-graphics.lib sfml-window.lib sfml-system.lib"), and order shouldn't be problem... I even tried to recompile the files in C:\...\SFML-1.2\vc2008\SFML.sln in release static mode and tested my project again, it didn't help.
I get a lot of errors like these:
Code: [Select]
1>msvcprt.lib(MSVCP90.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@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) is already defined in libcpmt.lib(string.obj).
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strncmp is already defined in LIBCMTD.lib(strncmp.obj).
(btw: output is translated, might be not literally)

Can you tell me why this occurs? I've read similar posts but I have seen nowhere the same problem.

Pages: 1 ... 5 6 [7]