Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Google Android

C++ Build Errors

Google Play Store, Amazon Kindle, Nook, and so many more

C++ Build Errors

Postby rusty » 04 Aug 2012, 12:50

Hi,

I'm stuck on this error:

Code: Select all
[exec] Compile++ thumb  : S3DClient <= lang.cpp
[exec] In file included from C:/z_android/workspace/invaders_test/jni/AIModels/lang.cpp:2:
[exec] C:/z_android/workspace/invaders_test/jni/AIModels/lang.h:30: error: return type specification for constructor invalid
[exec] C:/z_android/workspace/invaders_test/jni/AIModels/lang.h:30: error: return type specification for constructor invalid
[exec] C:/z_android/workspace/invaders_test/jni/AIModels/lang.h: In constructor 'lang::lang()':
[exec] C:/z_android/workspace/invaders_test/jni/AIModels/lang.h:30: error: returning a value from a constructor
[exec] C:/z_android/workspace/invaders_test/jni/AIModels/lang.h: In constructor 'lang::lang(S3DX::AIVariable)':
[exec] C:/z_android/workspace/invaders_test/jni/AIModels/lang.h:30: error: returning a value from a constructor
[exec] make: *** [/cygdrive/c/z_android/workspace/invaders_test/obj/local/armeabi/objs/S3DClient/AIModels/lang.o] Error 1


Looking into the class definition and there is no constructor.
I've been back and tried adding an onInit handler to no avail.

Any suggestions / solutions?
rusty
Expert Boarder
Expert Boarder
 
Posts: 106

Re: C++ Build Errors

Postby error454 » 06 Aug 2012, 15:25

Why are you using the c++ export vs lua? It seems you have very basic c issues that you could avoid by using lua.
error454
Platinum Boarder
Platinum Boarder
 
Posts: 654
Location: Portland, OR USA


Return to Google Android