From: kidchaos en h. <kid...@ho...> - 2007-04-19 13:56:11
|
Hi, This a message for the devtiki mailing list, (to other people who received the same mail: hope you dont mind that i send personally) Im having troubles on compiling the tikisnake sample. Im working on a windows XP with visual studio express. I downloaded the current version of tiki from svn, and compiled the tiki library without problem, but now trying to compile the tikisnake sample im getting the following errors: ------ Build started: Project: tikisnake, Configuration: Debug Win32 ------ Compiling... snake.cpp Linking... msvcprtd.lib(MSVCP80D.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@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in tiki.lib(console.obj) msvcprtd.lib(MSVCP80D.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@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in tiki.lib(console.obj) LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject\Debug\tikisnake.exe : fatal error LNK1169: one or more multiply defined symbols found Build log was saved at "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\Debug\BuildLog.htm" tikisnake - 3 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Two questions: 1) srand(Time::gettime()); is there any problem with this function??? 2) Searching on the code, i dont understand if the console class is a valid drawable object, it is declaring the ctor and the dtor of a string class??? Any help appreciate, Regards @B^)> |