PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc Van Cauwenberghe on November 14, 2004, 06:13:19 AM

Title: SUB/FUNCTION not found
Post by: Marc Van Cauwenberghe on November 14, 2004, 06:13:19 AM
Hello,

just started a project where I add *.inc and *.bas files that I used on other projects (but not in firefly enviroment) , but when compiling the project it gives error 462: undefined SUB/FUNCTION.

p.s. I do not use any ifdef statement.

Any ideas

thanks
Title: SUB/FUNCTION not found
Post by: Marc Van Cauwenberghe on November 14, 2004, 09:53:48 AM
Update,

I think it has something to do with the fact that I like to use FILENAME.inc and FILENAME.BAS.  For example: I like to put my equeates, types and decrares in an *.inc file like stafil.inc.  The subs and functions go into a *.bas file like stafil.bas ( a bit like the *.h and *.c files in c).  adding them in the project gives no errors. After compiling I see only Project1_STAFIL_MODULE.inc and there are no functions inside?



Any help?
Title: SUB/FUNCTION not found
Post by: TechSupport on November 14, 2004, 12:25:31 PM
hmmmm..... yeah, I see what you mean. Looks like FireFly may not be differentiating between the two files with the same file name but different extensions.... In the meantime, you should probably use unique filenames until I get this fixed.
Title: SUB/FUNCTION not found
Post by: Marc Van Cauwenberghe on November 14, 2004, 01:01:10 PM
Thank you,

I hope you get this fixed.  I would like to use the same modules in firefly and pb.

For the moment I renamed all my FILENAME.inc and FILENAME.bas files to FF_FILENAME.INC but I know that this is not at all the way to do it. The two sets of files will start leading a different life.

Marc
Title: SUB/FUNCTION not found
Post by: Marc Van Cauwenberghe on November 24, 2004, 01:19:58 PM
And it is fixed,

thank you Paul :)