HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 linker error :'(

View previous topic View next topic Go down 
AuthorMessage
mrteddy
Guest



PostSubject: linker error :'(   Mon Nov 22, 2010 3:30 am

Hey everyone! spark is really great and I'm just implementing it into my game now... or at least attempting to haha. ANYWAYS.... It compiled smoothly on code blocks with the gcc compiler, but I have this one linker error. I'm using the irrlicht .a file and the core .a file that I compiled myself by downloading your lovely project. This is the linker error:

Code:

..\Spark\lib\mingw\static\libSPARK_IRR.a(SPK_IRR_ALL.o)(.text$_ZN3irr5scene10ISceneNode11getMaterialEj[irr::scene::ISceneNode::getMaterial(unsigned int)]+0x4):SPK_IRR_ALL.cpp||undefined reference to `_imp___ZN3irr5video16IdentityMaterialE'|

Thanks for your time!
Back to top Go down
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: linker error :'(   Mon Nov 22, 2010 5:29 am

Hi,

Are you using the static lib of Irrlicht ? If so, try to define _IRR_STATIC_LIB_ when compiling the irrlicht module of SPARK.
Back to top Go down
View user profile http://spark.developpez.com
mrteddy



Messages : 3
Date d'inscription : 2010-11-22

PostSubject: Re: linker error :'(   Mon Nov 22, 2010 12:11 pm

It's an irrlicht codeblocks project... so I guess it should've been, but I tried linking the static irrlicht file after the spark files and now it works fine... strange. Thanks Very Happy
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: linker error :'(   Mon Nov 22, 2010 1:55 pm

Glad it works !

Regarding the order of linking, it is the normal behaviour with gcc. Dependancies have to be linked always after.
Back to top Go down
View user profile http://spark.developpez.com
Sponsored content




PostSubject: Re: linker error :'(   Today at 9:28 am

Back to top Go down
 
linker error :'(
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Selenium RC; Permission denied on session.([error] Element not found ")
» Can I check the error message displayed or not in Selenium?
» Getting error when i run selenium script in Eclipse, please help
» Response_Code = -1 Error_Message = Request Error
» iexpoloreproxy https certificate error

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: