adding objcbase to uses list gives duplicate identifer lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- MISV · 2021-12-23 11:35 Hi, Since I am giving up fixing fpc source and making Lazarus accept the new units files when compiling (works fine when browsing code) I am reimplementing all WKxxxx declarations myself. OK, so having said that, adding WKFrameInfo to my own unit cause a problem... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i TypeWKFrameInfo =  objcclass external (NSObject, NSCopyingProtocol)public  function isMainFrame: ObjCBOOL: message 'isMainFrame';  function request: NSURLRequest: message 'request';  function copyWithZone (zone: NSZonePtr): id; message 'copywithzone:';end;  gives error Quote"Error: Duplicate identifier "zone" Quote"Hint: Identifier already defined in unit OBJCBASE: objcbase,pp at line 134 OK... And so it is as a function in "NSObject = objcclass external (NSObjectProtocol)"... How do I fix this? .... Kinda mystified I tried to include unit objcbase in my uses list and that gives error Quote"Error: Duplicate identifier "OBJCBASE" (notice case) I guess this is somehow added implicitly Quick note: Anyone wanting to use the WKWebView browser for the utmost non-trivial things will need the WKxxxx declarations but will either need to fix source themselves or recompile and while checking generated files I have recompiled those I wanted it simply will not work in Lazarus: https://forum.lazarus.freepascal.org/index.php/topic, 42001.msg428233.html#msg428233 ---------------------------------------------------------------------- trev · 2021-12-23 11:50 I believe in the past I've simply renamed a conflicting argument. The important part is the argument type. So try renaming zone to, say, myzone and cross your fingers and toes. ---------------------------------------------------------------------- MISV · 2021-12-25 13:35 Thank you. Appears to compile. I will write if I encounter further problems. Otherwise that is at least an alternative solution to the problem. (And if FPCSrc get fixed at some point each to remove declarations again)