GameAnalytics / GA-SDK-GODOT

Official GameAnalytics Godot SDK repository
MIT License
42 stars 7 forks source link

Missing Type Specifier and missing ',' #2

Closed Rdna123 closed 3 years ago

Rdna123 commented 3 years ago

Scons errors due to the problems in the title.

the1schwartz commented 3 years ago

Sorry could you post the error you are receiving and for what platform you are building for?

Rdna123 commented 3 years ago

I will have to reset up every thing to get the error, but I was building for windows with a portable version of scons.

the1schwartz commented 3 years ago

Ok so you fixed the error locally or what did you do? It would nice to know what file I need to look in to find the error.

Rdna123 commented 3 years ago

This is the error I am receiving.

C:\godot-master\modules\gameanalytics\GameAnalytics.h(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\godot-master\modules\gameanalytics\GameAnalytics.h(19): error C2143: syntax error: missing ',' before '&'

C:\Users\chknm\TestingGrounds\godot-master\modules\gameanalytics\GameAnalytics.h(20): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\Users\chknm\TestingGrounds\godot-master\modules\gameanalytics\GameAnalytics.h(20): error C2143: syntax error: missing ',' before '&'

C:\godot-master\modules\gameanalytics\GameAnalytics.h(21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\godot-master\modules\gameanalytics\GameAnalytics.h(21): error C2143: syntax error: missing ',' before '&'

C:\godot-master\modules\gameanalytics\GameAnalytics.h(23): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\godot-master\modules\gameanalytics\GameAnalytics.h(23): error C2143: syntax error: missing ',' before '&'

C:\godot-master\modules\gameanalytics\GameAnalytics.h(24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\godot-master\modules\gameanalytics\GameAnalytics.h(24): error C2143: syntax error: missing ',' before '&'

scons: *** [modules\gameanalytics\register_types.windows.tools.64.obj] Error 2
scons: building terminated because of errors.
Rdna123 commented 3 years ago

I had not fixed locally, though I am attempting.

It seems though that it is not perceiving PoolStringArray as a specifier.

EDIT: I am not that advanced with cpp to where I could fix this error.

the1schwartz commented 3 years ago

Hmm ok. I have not been able to reproduce the error in my end. What version of Visual Studio are you using and what verison Scons are you using?

Rdna123 commented 3 years ago

I am using scons-local-4.0.1 and visual studio comunity 2019

Rdna123 commented 3 years ago

I missed this error before 'cl: Command line warning D9002 : ignoring unknown option '-std=c++11''

I will see if of c++11 is installed on my computer or not

the1schwartz commented 3 years ago

I think that is most for mac

the1schwartz commented 3 years ago

Have you added c++ MFC (Microsoft Foundation Class) library? As suggested here: https://godotengine.org/qa/74034/install-from-scratch-compile-error?show=74056

Rdna123 commented 3 years ago

I don't think that is the problem I can compile it just fine without the module.

The answer provided does not explain a fix.

the1schwartz commented 3 years ago

Hmm ok. I am out of ideas. Are you sure you are using a stable version of Godot like stable 3.2.2 (https://github.com/godotengine/godot/releases/tag/3.2.2-stable) and haven't just checked out the latest commit from the master branch?

Rdna123 commented 3 years ago

It may be how I downloaded the godot files your that I am using portable scons.