Bookstore

Recent

Author Topic: Illegal type conversion of "Pobjc_object"  (Read 144 times)

inferno

  • New Member
  • *
  • Posts: 21
Illegal type conversion of "Pobjc_object"
« on: February 26, 2020, 08:30:15 pm »
Hi,
During Cocoa compilation I get many errors  about illegal type conversion of "Pobjc_object":

NSGraphicsContext.inc(334,13) Error: Illegal type conversion: "Pobjc_object" to "NSImageInterpolation"
NSGraphicsContext.inc(367,13) Error: Illegal type conversion: "Pobjc_object" to "NSCompositingOperation"
NSBox.inc(115,13) Error: Illegal type conversion: "Pobjc_object" to "NSBorderType"
NSBox.inc(120,13) Error: Illegal type conversion: "Pobjc_object" to "NSTitlePosition"
NSBox.inc(145,13) Error: Illegal type conversion: "Pobjc_object" to "NSBoxType"
NSButton.inc(198,13) Error: Illegal type conversion: "Pobjc_object" to "NSCellImagePosition"
NSButton.inc(388,13) Error: Illegal type conversion: "Pobjc_object" to "NSBezelStyle"
NSControl.inc(358,13) Error: Illegal type conversion: "Pobjc_object" to "NSTextAlignment"
NSControl.inc(468,13) Error: Illegal type conversion: "Pobjc_object" to "Single"
NSControl.inc(619,13) Error: Illegal type conversion: "Pobjc_object" to "NSWritingDirection"
NSFont.inc(474,13) Error: Illegal type conversion: "Pobjc_object" to "Single"
...

Any idea how to fix it?

Best regards,
Inferno

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 696
Re: Illegal type conversion of "Pobjc_object"
« Reply #1 on: February 26, 2020, 10:06:54 pm »
Which FPC version are you building and how?

There is no line 334 in the NSGraphicsContext.inc of either FPC 3.2 or FPC trunk.