Jump to content
Sign in to follow this  
jdickens

Error: Duplicate Function Name

Recommended Posts

I have a script which is broken into 13 parts (individual scripts).

I have checked it repeatedly, and put one apparently offending script at the top of a hierarchy so that it is only in one include statement.

Yet I keep getting Duplicate Function Name with all the fns in that script listed in Scite. Same thing with vanilla AutoIt compiler; of course only first fn is shown.

Any chance it is not my newbie script?

Sorry, seems too much to post the code.

J :lmao:


If I am too verbose, just say so. You don't need to run on and on.

Share this post


Link to post
Share on other sites

Attach your script to a post.

Doesn't the error tell you which function is duplicated?

I have a felling it does. Because it happened to me before.

Share this post


Link to post
Share on other sites

I generally avoid that by putting an #include-once in ALL my include files, and each include will recurse the others. The only one at the top of the heirarchy is the main code. If I need to add additional functions besides the 3 includes I have, I'll write a separate #include line as needed for that particular program.

For example:

#include <BCBS-SupportFunctions.au3>

is the only include line in my main programs, but

#include <BCBSConstants.au3>
#include <Datenew.au3>

is in the support functions.

And

#include <BCBS-SupportFunctions.au3>
#include <Datenew.au3>

is in the constants

I probably don't need this ammount of recursion, but I like to be anal about minor details. :lmao:


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...