Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


#Actualarpeggiodragon

Posted 06 December 2012 - 03:19 AM

<p>Ran into a minor problem compiling for MSVC 2008 with AS_NO_THREADS defined.

1>as_thread.cpp
1>..\..\source\as_thread.cpp(75) : error C2220: warning treated as error - no 'object' file generated
1>..\..\source\as_thread.cpp(75) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(81) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(87) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(93) : warning C4390: ';' : empty controlled statement found; is this the intent?

Removing the \WX (treat warnings as errors) property fixed the error for me.EDIT: Awesome. I see you've added namespaces! (well they are new to me) Posted Image
EDIT2: What am I doing wrong here?
r = engine->SetDefaultNamespace("input"); assert( r >= 0 );
r = engine->RegisterGlobalFunction( "::joystick@ get_joystick(int)", asFUNCTION(Input::GetJoystick), asCALL_CDECL); assert( r >= 0 );
r = engine->SetDefaultNamespace(""); assert( r >= 0 );

script:

input::joystick[0]; //input is undeclared.

#4arpeggiodragon

Posted 06 December 2012 - 03:16 AM

<p>Ran into a minor problem compiling for MSVC 2008 with AS_NO_THREADS defined.

1>as_thread.cpp
1>..\..\source\as_thread.cpp(75) : error C2220: warning treated as error - no 'object' file generated
1>..\..\source\as_thread.cpp(75) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(81) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(87) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(93) : warning C4390: ';' : empty controlled statement found; is this the intent?

Removing the \WX (treat warnings as errors) property fixed the error for me.EDIT: Awesome. I see you've added namespaces! (well they are new to me) :)EDIT2:What am I doing wrong here: r = engine->SetDefaultNamespace("input"); assert( r >= 0 ); r = engine->RegisterGlobalFunction( "::joystick@ get_joystick(int)", asFUNCTION(Input::GetJoystick), asCALL_CDECL); assert( r >= 0 ); r = engine->SetDefaultNamespace(""); assert( r >= 0 );script:input::joystick[0]; //input is undeclared.

#3arpeggiodragon

Posted 06 December 2012 - 02:42 AM

Ran into a minor problem compiling for MSVC 2008 with AS_NO_THREADS defined.

1>as_thread.cpp
1>..\..\source\as_thread.cpp(75) : error C2220: warning treated as error - no 'object' file generated
1>..\..\source\as_thread.cpp(75) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(81) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(87) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(93) : warning C4390: ';' : empty controlled statement found; is this the intent?

Removing the \WX (treat warnings as errors) property fixed the error for me.EDIT: Awesome. I see you've added namespaces! (well they are new to me) :) I seem to be having problems registering them, however.
int r(0);	r = engine->SetDefaultNamespace("input"); assert( r >= 0 ); //returns 0	r = engine->RegisterGlobalFunction( "joystick@ get_joystick(int)", asFUNCTION(Input::GetJoystick), asCALL_CDECL); assert( r >= 0 ); //returns -10
No matter what I register after a call to SetDefaultNamespace() seems to assert.

#2arpeggiodragon

Posted 05 December 2012 - 11:47 PM

Ran into a minor problem compiling for MSVC 2008 with AS_NO_THREADS defined.

1>as_thread.cpp
1>..\..\source\as_thread.cpp(75) : error C2220: warning treated as error - no 'object' file generated
1>..\..\source\as_thread.cpp(75) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(81) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(87) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(93) : warning C4390: ';' : empty controlled statement found; is this the intent?

Removing the \WX (treat warnings as errors) property fixed the error for me.

#1arpeggiodragon

Posted 05 December 2012 - 11:46 PM

Ran into a minor problem compiling for MSVC 2008 with AS_NO_THREADS defined.

1>as_thread.cpp
1>..\..\source\as_thread.cpp(75) : error C2220: warning treated as error - no 'object' file generated
1>..\..\source\as_thread.cpp(75) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(81) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(87) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>..\..\source\as_thread.cpp(93) : warning C4390: ';' : empty controlled statement found; is this the intent?

Removing the \WX (treat errors as warnings) property fixed the error for me.

PARTNERS