Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Trying to compile project using SPARK

Go down 
2 posters
AuthorMessage
3DModelerMan




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

Trying to compile project using SPARK Empty
PostSubject: Trying to compile project using SPARK   Trying to compile project using SPARK Icon_minitimeFri 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
3DModelerMan




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

Trying to compile project using SPARK Empty
PostSubject: Re: Trying to compile project using SPARK   Trying to compile project using SPARK Icon_minitimeFri 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
topotun




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

Trying to compile project using SPARK Empty
PostSubject: Re: Trying to compile project using SPARK   Trying to compile project using SPARK Icon_minitimeMon 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
Sponsored content





Trying to compile project using SPARK Empty
PostSubject: Re: Trying to compile project using SPARK   Trying to compile project using SPARK Icon_minitime

Back to top Go down
 
Trying to compile project using SPARK
Back to top 
Page 1 of 1
 Similar topics
-
» SPARK and C++
» Spark opengl 64 bit
» Using SPARK with SFML
» Using Spark in Dark GDK is this possible ?
» Spark crashes

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