Crystal Space
Welcome, Guest. Please login or register.
November 26, 2014, 12:42:41 pm

Login with username, password and session length
Search:     Advanced search
9026 Posts in 2046 Topics by 9136 Members
Latest Member: Nataerb
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Compilation problems
« previous next »
Pages: [1] Print
Author Topic: Compilation problems  (Read 3066 times)
Lazo
Guest


Email
« on: January 09, 2006, 09:30:05 pm »

hi,
i`ve recently started programing with crystal space i`ve begun reading the manual and got to chapter 5.2.3 so far. In the manual it is that the aplication should start but i have problems with building it. First i made the project in the crystal space workspace(i`m using visual C++ 6.0) and got this error:

simple.obj : error LNK2001: unresolved external symbol "public: static unsigned int __cdecl csKeyEventHelper::GetCookedCode(struct iEvent const *)" (?GetCookedCode@csKeyEventHelper@@SAIPBUiEvent@@@Z)
simple.obj : error LNK2001: unresolved external symbol "public: static enum _csKeyEventType __cdecl csKeyEventHelper::GetEventType(struct iEvent const *)" (?GetEventType@csKeyEventHelper@@SA?AW4_csKeyEventType@@PBUiEvent@@@Z)
simple.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl csInitializer::SetupEventHandler(struct iObjectRegistry *,bool (__cdecl*)(struct iEvent &),unsigned int)" (?SetupEventHandler@csInitializer@@SA_NPAUiObjectRegistry@@
P6A_NAAUiEvent@@@ZI@Z)
simple.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl csInitializer::RequestPlugins(struct iObjectRegistry *,...)" (?RequestPlugins@csInitializer@@SA_NPAUiObjectRegistry@@ZZ)
simple.obj : error LNK2001: unresolved external symbol "bool __cdecl csDefaultRunLoop(struct iObjectRegistry *)" (?csDefaultRunLoop@@YA_NPAUiObjectRegistry@@@Z)
simple.obj : error LNK2001: unresolved external symbol "public: static void __cdecl csInitializer::DestroyApplication(struct iObjectRegistry *)" (?DestroyApplication@csInitializer@@SAXPAUiObjectRegistry@@@Z)
simple.obj : error LNK2001: unresolved external symbol "public: static struct iObjectRegistry * __cdecl csInitializer::CreateEnvironment(int,char const * const * const)" (?CreateEnvironment@csInitializer@@SAPAUiObjectRegistry@@HQBQBD@Z)
simple.obj : error LNK2001: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A)
simple.obj : error LNK2001: unresolved external symbol "int __cdecl csPrintfV(char const *,char *)" (?csPrintfV@@YAHPBDPAD@Z)
simple.obj : error LNK2001: unresolved external symbol "int __cdecl csPrintf(char const *,...)" (?csPrintf@@YAHPBDZZ)
Debug/Project1.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

Project1.exe - 11 error(s), 0 warning(s)

when all dependancies are turned on, before that i got an error that said that it couldnt read voliatile.h but included its folder and fixed
i`ll be very gratefull if you give me some directions how to fix the problem:)
p.s. srry for grammar/spelling mistakes Cheesy
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #1 on: January 09, 2006, 10:21:26 pm »

It looks like you forgot to link against the CS library, which is named 'crystalspace' in CS 0.99. If you're using CS 0.98, then you will instead link with csutil, csgeom, cstool, csgfx.
Logged
lazo
Guest


Email
« Reply #2 on: January 09, 2006, 10:46:05 pm »

well i`ve linked them but now i got this problem:

--------------------Configuration: Project1 - Win32 Debug--------------------
Linking...
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __CrtSetDbgFlag already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fprintf already defined in LIBCD.lib(fprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __assert already defined in LIBCD.lib(assert.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fflush already defined in LIBCD.lib(fflush.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __strnicmp already defined in LIBCD.lib(strnicmp.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf already defined in LIBCD.lib(sprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strncat already defined in LIBCD.lib(strncat.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/Project1.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

Project1.exe - 15 error(s), 1 warning(s)

do i have to include all in dependancies? or have to exclude some of them. there is a hint to use NODEFAULTLIB:library instead of MSVCRTD but use it where? Cheesy
btw. i am using 0.98 because in the downlaod section it was said that it is the stable one:)
Logged
Lazo
Guest


Email
« Reply #3 on: January 10, 2006, 07:44:00 pm »

help pls Sad
Logged
Lazo
Guest


Email
« Reply #4 on: January 13, 2006, 08:17:21 pm »

some help would really be appreciated!
Logged
Jonathan.TheGameMaker
Guest


Email
« Reply #5 on: January 13, 2006, 10:48:39 pm »

ok but u install the SDK?
Logged
Lazo
Guest


Email
« Reply #6 on: January 14, 2006, 01:09:18 pm »

well i didnt... should i? ok i will install it..
Logged
dingobloo
Idle Extrordinare.
Global Moderator
Full Member
*****
Posts: 125


View Profile WWW
« Reply #7 on: January 14, 2006, 02:29:59 pm »

Have you build CS in release or Debug?

and have you followed these instructions to the letter?

http://www.crystalspace3d.org/docs/online/manual-0.98/cs_126.html#SEC304
Logged
Lazo
Guest


Email
« Reply #8 on: January 15, 2006, 01:37:06 pm »

thanks a lot i think i found what is the problem... but i was still on step 5.2 and havent read this yet
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 8.835 seconds with 17 queries.