PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Tor Hagland on November 03, 2010, 08:01:02 AM

Title: Duplicate Equate error after upgrading to FF 3.10
Post by: Tor Hagland on November 03, 2010, 08:01:02 AM
Hi!

I get an error when compiling some of my projects in the new FF version (no problems in 3.09) : Error 468 : Duplicate Equate.

When I compile the main project module in PB 9 directly I get an error on the equate: %WINVER = &H0501

I'm using Roca's includes 1.17

Any suggestions?
Title: Re: Duplicate Equate error after upgrading to FF 3.10
Post by: Paul Squires on November 03, 2010, 08:33:44 AM
Jose's includes are incredibly comprehensive allowing the programmer additional functionality based on the operation system that the program is targeted for. You will see in Jose's includes that the %WINVER equate is used many times to determine what additional equates/elements of a TYPE, etc. to include.

For FF 3.10, I added additional functionality in the Project Properties to allow the user to specify the base operating system. FF3 then generates the %WINVER equate.

In your failing projects, can you tell me what additional #INCLUDEs you have in the project. One of those includes probably has %WINVER defined as well.

Worst case, you can email me the failing project and I'll help figure it out for you.
Title: Re: Duplicate Equate error after upgrading to FF 3.10
Post by: Tor Hagland on November 03, 2010, 10:12:57 AM
Thank you for a rela fast response! You're of absolutely right. After some checking, I have found that ADO.INC is what's causing me trouble. The include files is heavily nested and this it's not an obvious task to troubleshoot. I would be grateful if you could give me some hints here
Title: Re: Duplicate Equate error after upgrading to FF 3.10
Post by: Tor Hagland on November 03, 2010, 11:05:29 AM
Hm... seems to be my bad day. After 'grepping'  all inc files and found that RAS.INC, USERENV.INC and WINDOWS.INC declares this equate with #IF NOT %DEF. I then discovered that I had placed my includes *BEFORE* Roca's includes, not AFTER as the comments in FF_Appstart instructs. Sorry to have bothered you. My program now compiles like a dream.

Thank you!
Title: Re: Duplicate Equate error after upgrading to FF 3.10
Post by: Paul Squires on November 03, 2010, 11:10:07 AM
Quote from: Tor Hagland on November 03, 2010, 11:05:29 AM
I then discovered that I had placed my includes *BEFORE* Roca's includes, not AFTER as the comments in FF_Appstart instructs.

tsk, tsk, tsk :D

Happy that you found the source of the problem.