Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / errors with SC_Start( ); in Sparky's Collision dll.

Author
Message
MikeP
14
Years of Service
User Offline
Joined: 9th Oct 2010
Location:
Posted: 13th Oct 2010 23:55
hi,
I added SC_Start(); after realizing I that sparky's dll won't work without it. But when I compiled, I get these errors:

1>e:\dark gdk - game1\dark gdk - game1\main.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\dark gdk - game1\dark gdk - game1\main.cpp(4) : error C2556: 'int SC_Start(void)' : overloaded function differs only by return type from 'void SC_Start(void)'
1> c:\program files (x86)\the game creators\dark gdk\include\sc_collision.h(3) : see declaration of 'SC_Start'
1>e:\dark gdk - game1\dark gdk - game1\main.cpp(4) : error C2371: 'SC_Start' : redefinition; different basic types
1> c:\program files (x86)\the game creators\dark gdk\include\sc_collision.h(3) : see declaration of 'SC_Start'

I'm using the latest version of Sparky's GDK dll (2.05c).
If I take out SC_Start(); then it compiles fine and only brings up an error when I run the program and it hits a SC_... command.

Any ideas? I've used sparky's dll before in darkbasic pro but never in GDK.

Thanks,
Mike
MikeP
14
Years of Service
User Offline
Joined: 9th Oct 2010
Location:
Posted: 14th Oct 2010 11:33
Fixed now I just moved the SC_Start inside a sub

Login to post a reply

Server time is: 2024-11-19 18:29:55
Your offset time is: 2024-11-19 18:29:55