jdickens Posted January 25, 2005 Share Posted January 25, 2005 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 If I am too verbose, just say so. You don't need to run on and on. Link to comment Share on other sites More sharing options...
SlimShady Posted January 25, 2005 Share Posted January 25, 2005 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. Link to comment Share on other sites More sharing options...
jdickens Posted January 25, 2005 Author Share Posted January 25, 2005 I am including all of them zipped. I am off work so I will get back to this forum in the am (Eastern US time) JScRdrAll_050125.zip If I am too verbose, just say so. You don't need to run on and on. Link to comment Share on other sites More sharing options...
Blue_Drache Posted January 25, 2005 Share Posted January 25, 2005 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. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
jdickens Posted January 26, 2005 Author Share Posted January 26, 2005 Ha! I really am a newbie. That sure worked. Thanks. J If I am too verbose, just say so. You don't need to run on and on. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now