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 / Question on functions

Author
Message
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 14th Apr 2008 00:06
What do I need to do to put different functions in diffrent source files, it can get it work fine in c++ and dark basic but no luck in GDK


Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Apr 2008 02:20
You have to declare function prototypes in order to call them from other source files. It's best to declare these prototypes in a header and then include this in source files you want to call the functions from. For example:

code.cpp:


code.h:


main.cpp:


Login to post a reply

Server time is: 2024-11-20 07:33:33
Your offset time is: 2024-11-20 07:33:33