PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Compiler error I do not understand  (Read 566 times)

Wilko Verweij

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 150
  • PB10 - FF3.7 User; Win 10
    • CHEAQS
Compiler error I do not understand
« on: February 28, 2018, 03:41:04 PM »

Hi, I get a compiler error that I do not understand. The error is:

4 Duplicated definition, Outp in 'dim shared Outp As OutputType'
and it occurs in the last line of the code below. The contents of the UDT don't matter, it is in the name of the variable 'Outp' for when I change it, the compiler error disappears. Of course I can use a different name but I would like to understand why this error occurs. AFAIK it is not a keyword or so. And there is no variable with this name elsewhere in the program. Any help is appreciated.
Wilko

Code: [Select]
Type OutputType
  Send2Screen As boolean
  Send2Printer As boolean
  Send2File As boolean
  Send2Csv As boolean
  Send2XML As boolean
  DisplaySummary As boolean
  DisplayDetails As boolean
  DisplayOtherInfo As boolean
  DisplayGraphs As boolean
End Type

dim shared Outp As OutputType
Logged

Josť Roca

  • FireFly3 Registered User
  • Master FireFly Member
  • *
  • Posts: 2888
    • Jos
Re: Compiler error I do not understand
« Reply #1 on: February 28, 2018, 04:01:44 PM »

There is a function called outp in intrin.bi (in the FreeBasic headers).

Wilko Verweij

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 150
  • PB10 - FF3.7 User; Win 10
    • CHEAQS
Re: Compiler error I do not understand
« Reply #2 on: February 28, 2018, 04:03:11 PM »

OK, that explains the error. Thanks, Jose!
Logged