PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Sean Scott on February 20, 2010, 08:51:17 PM

Title: Duplicate Name Definition error
Post by: Sean Scott on February 20, 2010, 08:51:17 PM
I have a very small project that I have been using to build and test functions outside of my large project. This project has a single form that has two command buttons, two text boxes, and a label. The only code that exists in the form are the two command button click events and two custom functions that I have been writing.

The project worked for a while, but earlier today I started getting the Duplicate Name Definition error when I tried to compile. If I comment out or delete the functions, the application compiles and runs as if the functions were still there.

Any ideas about what might be going on? Where could the app be finding these functions?

Sean
Title: Re: Duplicate Name Definition error
Post by: Paul Squires on February 20, 2010, 09:44:45 PM
Try compile the main CODEGEN*_MAIN.BAS file using PBEdit or JellyFish. It may give you a better indication of where the error is.
Title: Re: Duplicate Name Definition error
Post by: Sean Scott on February 20, 2010, 09:53:59 PM
I will try that using PBEdit.

After a little more digging, I have found these two functions in CODEGEN_MYFUNCTIONS_UTILITY.inc, which I assume is populated by the Function Library.

If I delete them from the .inc file, they are put back when I compile--which is no great surprise. However, if I rename the functions in in the Function Library and uncomment them in the form code, I get error 516 in CODEGEN_MYFUNCTIONS_DECLARES.inc on line 43, which is the declare for my function.

I will keep digging, but any suggestions would be appreciated...