HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Trying to compile project using SPARK

View previous topic View next topic Go down 
AuthorMessage
3DModelerMan



Messages : 2
Date d'inscription : 2012-02-10

PostSubject: Trying to compile project using SPARK   Fri Feb 10, 2012 10:53 am

I'm working on a scene editor for my engine. My engine is a 3D engine with SPARK integrated for particles. And the editor uses Qt for GUI. I've compiled and run an example with my engine, and SPARK gets compiled fine. My problem is when I try to compile it in my editor. I get these errors:

1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C2143: syntax error : missing ')' before '&'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C2143: syntax error : missing ';' before '&'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C2182: 'Particle' : illegal use of type 'void'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C2059: syntax error : ')'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C2143: syntax error : missing ';' before 'const'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(226): error C2208: 'const int' : no members defined using this type
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(236): error C2327: 'SPK::Emitter::Particle' : is not a type name, static, or enumerator
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(282): error C2327: 'SPK::Emitter::Particle' : is not a type name, static, or enumerator
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(347): error C2589: '(' : illegal token on right side of '::'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(347): error C2143: syntax error : missing ';' before '::'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(347): error C2059: syntax error : '::'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(348): error C2143: syntax error : missing ';' before '{'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(348): error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(353): error C2065: 'particle' : undeclared identifier
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(353): error C2597: illegal reference to non-static member 'SPK::Emitter::Particle'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(353): error C3867: 'SPK::Emitter::Particle': function call missing argument list; use '&SPK::Emitter::Particle' to create a pointer to member
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(353): error C2761: 'generateVelocity' : member function redeclaration not allowed
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(353): error C2143: syntax error : missing ';' before 'const'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(353): error C2059: syntax error : 'const'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(354): error C2143: syntax error : missing ';' before '{'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Core/SPK_Emitter.h(354): error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StraightEmitter.h(98): error C2327: 'SPK::Emitter::Particle' : is not a type name, static, or enumerator
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StraightEmitter.h(119): error C2065: 'particle' : undeclared identifier
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StraightEmitter.h(119): error C2597: illegal reference to non-static member 'SPK::Emitter::Particle'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StraightEmitter.h(119): error C3867: 'SPK::Emitter::Particle': function call missing argument list; use '&SPK::Emitter::Particle' to create a pointer to member
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StraightEmitter.h(119): error C2062: type 'float' unexpected
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StraightEmitter.h(120): error C2143: syntax error : missing ';' before '{'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StraightEmitter.h(120): error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_SphericEmitter.h(151): error C2327: 'SPK::Emitter::Particle' : is not a type name, static, or enumerator
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_NormalEmitter.h(119): error C2327: 'SPK::Emitter::Particle' : is not a type name, static, or enumerator
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_RandomEmitter.h(51): error C2327: 'SPK::Emitter::Particle' : is not a type name, static, or enumerator
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StaticEmitter.h(50): error C2327: 'SPK::Emitter::Particle' : is not a type name, static, or enumerator
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StaticEmitter.h(61): error C2065: 'particle' : undeclared identifier
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StaticEmitter.h(61): error C2597: illegal reference to non-static member 'SPK::Emitter::Particle'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StaticEmitter.h(61): error C3867: 'SPK::Emitter::Particle': function call missing argument list; use '&SPK::Emitter::Particle' to create a pointer to member
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StaticEmitter.h(61): error C2062: type 'float' unexpected
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StaticEmitter.h(62): error C2143: syntax error : missing ';' before '{'
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Emitters/SPK_StaticEmitter.h(62): error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\tanner\documents\projects\icicle engine\icicle engine\include\depend\spark\Extensions/Modifiers/SPK_Rotator.h(8102028): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>
1>Build FAILED.


None of these show up in my other test application. I know I've linked everything correctly because I can initialize my physics module fine, which doesn't have any dependency on SPARK, and it has library files and headers in the same place for it's dependencies.
Back to top Go down
View user profile
3DModelerMan



Messages : 2
Date d'inscription : 2012-02-10

PostSubject: Re: Trying to compile project using SPARK   Fri Feb 10, 2012 12:02 pm

I found out it was actually a dependency problem and had to do with my preprocessor defines.
Sorry for such a dumb question on my first post.
Back to top Go down
View user profile
topotun



Messages : 1
Date d'inscription : 2015-03-02

PostSubject: Re: Trying to compile project using SPARK   Mon Mar 02, 2015 9:35 am

Hi 3DModelerMan Smile

This is a pretty old thread, but I'm hoping I get a response. I have the same set of error messages (Spark 1.5 with VS2013, seemed like less work to 'copy/paste' into an existing project), and so far I am clueless as far as what's causing them (seems like the forward declaration of the SPK::Particle class). What was your solution?

Cheers!
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Trying to compile project using SPARK   Today at 10:12 am

Back to top Go down
 
Trying to compile project using SPARK
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» How to decide which framework is best for your project.
» PROJECT : REBIRTH
» The Oracle Project
» How to convert selenium project into runnable jar file.
» Priceless Project Writing Contest *usa only*

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