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.

DarkBASIC Professional Discussion / #include won't work for some reason

Author
Message
Delfir
21
Years of Service
User Offline
Joined: 28th Aug 2004
Location:
Posted: 11th Feb 2007 19:05
Okay everytime I try to include a file I get a "could not find include file" error. The directory is correct. I decided to start using include files because my code is starting to get huge and unmanagable and I want to break it up into many smaller files to manage it easier. So why won't it work. Is it my syntax?



Don't take life too seriously... no one gets out alive.
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 11th Feb 2007 19:08 Edited at: 11th Feb 2007 19:08
Your best option is not to use the #Include commands at all.
If you want to include another file, use the IDE to include it instead.



Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 11th Feb 2007 19:17
Well, that would be the c++-way I think.
Just use a regular string in DBP;


"I kören hörs de brummande busarna Björnligan och Gondolen"
Milkman
20
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 11th Feb 2007 19:19
Quote: "If you want to include another file, use the IDE to include it instead."


but then the return line numbers from the compiler mean nothing...

Who needs a signature?
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 11th Feb 2007 19:55 Edited at: 11th Feb 2007 19:56
hyrichter
22
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 11th Feb 2007 20:12
Quote: "but then the return line numbers from the compiler mean nothing..."

They do if you use CodeSurge.

Good performance is better than a good excuse.
CodeSurge -- DBP Editor for serious programmers.
Delfir
21
Years of Service
User Offline
Joined: 28th Aug 2004
Location:
Posted: 14th Feb 2007 14:41
Quote: "Well, that would be the c++-way I think.
Just use a regular string in DBP;"

I just tried that and I get a "Could not understand command inside B_C_Setup.dba" error

Quote: "Your best option is not to use the #Include commands at all.
If you want to include another file, use the IDE to include it instead."

What is the IDE?

Don't take life too seriously... no one gets out alive.
Delfir
21
Years of Service
User Offline
Joined: 28th Aug 2004
Location:
Posted: 14th Feb 2007 15:22
Okay, I got it working. Turned out, there was an error in the actual include file that needed to be fixed.

I'd still like to know what the IDE is though.

Don't take life too seriously... no one gets out alive.
hyrichter
22
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 14th Feb 2007 15:58
Quote: "What is the IDE?"

Integrated Development Environment, the editor.

Good performance is better than a good excuse.
CodeSurge -- DBP Editor for serious programmers.

Login to post a reply

Server time is: 2026-06-26 15:43:51
Your offset time is: 2026-06-26 15:43:51