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 / compilation failed

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 21st Oct 2010 00:37
Whats wrong with this code?!



I tried to compile this and all dbp does is return message compilation failed and nothing else.
Balid
22
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 21st Oct 2010 01:03 Edited at: 21st Oct 2010 01:50
nruser,

<edit>Learned something new with =PRoF= comment on constants.</edit>

Regards,



Indigo - A DBPro IDE Alternative
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 21st Oct 2010 01:06 Edited at: 21st Oct 2010 01:10
The 1st error I fixed is caused by the dubious use of Tab you seem to employ.

#constant name value

not

#constant name (tab) (tab) (tab) value

Altho this only seems to affect it when you use a constant to substitute a keyword.


The second error was caused by an empty type declaration for the StaticType type.


The 3rd error was caused by you starting a constant name with a numeric character (constant 3D, change it to c3D or someth)


It compiles and runs with these mods.

Hope that helps

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 21st Oct 2010 02:15
thank you now it compiles and runs normally
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 22nd Oct 2010 00:11
I have fixed all errors but now i have 'declaration is not valid' error on this type



it is same as all other types but this one returns error?
CSL
17
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: USA
Posted: 22nd Oct 2010 00:18 Edited at: 22nd Oct 2010 00:19
I think this line is giving the error:

Tex as as string

CSL
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 22nd Oct 2010 00:33
i didn't saw that, this took me around 15 minutes to find out thanks

Login to post a reply

Server time is: 2026-07-22 03:50:58
Your offset time is: 2026-07-22 03:50:58