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 / [error] function duplicated in program

Author
Message
Kaezon
15
Years of Service
User Offline
Joined: 15th Dec 2010
Location: West Point, NY
Posted: 16th Dec 2010 00:23
Ok, so there's only two other threads about this problem and neither are particularly helpful.

I'm working on a DrawButton function but no matter what I name it, the compiler says the name is duplicated.

Main.dba


Menu_Library.dba


and there's no code in MainMenu yet.
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 16th Dec 2010 03:06 Edited at: 16th Dec 2010 03:07
I betting you've already got Menu_Library already attached to your project. In the project manger/explorer, look for source files and see if Menu_Library is in there. If it is then you don't need to include it. I believe attaching sources to the project is better than including them. If I remember correctly including can be buggy or so people have said at one point.

A dream is a fantasy, if you achieve that fantasy it was never a dream to begin with.
Kaezon
15
Years of Service
User Offline
Joined: 15th Dec 2010
Location: West Point, NY
Posted: 16th Dec 2010 04:21
Yes, I do have the code file included in the compiler.
Taking the include statements out seems to have done it.
Thanks for the help

Login to post a reply

Server time is: 2026-07-21 07:03:12
Your offset time is: 2026-07-21 07:03:12