Recent

Author Topic: Error ld: 27 duplicate symbols for architecture x86_64  (Read 1069 times)

Espectr0

  • Full Member
  • ***
  • Posts: 221
Error ld: 27 duplicate symbols for architecture x86_64
« on: October 20, 2022, 12:59:25 am »
Hello,

I just updated my MacBook Air with macOS Monterey and Lazarus 2.2.4, when trying to install my package and rebuild the ide, it tells me the following errors:

Code: Pascal  [Select][+][-]
  1. Build IDE: Exit code 2, Errors: 30
  2. Error: duplicate symbol '_OBJC_CLASS_$_TCocoaOpenGLView' in:
  3. Error: duplicate symbol '_OBJC_METACLASS_$_TCocoaOpenGLView' in:
  4. Error: duplicate symbol '_OBJC_IVAR_$_TCocoaOpenGLView.backingScaleFactor' in:
  5. Error: duplicate symbol '_OBJC_IVAR_$_TCocoaOpenGLView.Owner' in:
  6. Error: duplicate symbol '_OBJC_IVAR_$_TCocoaOpenGLView.callback' in:
  7. Error: duplicate symbol '-[TCocoaOpenGLView resetCursorRects]' in:
  8. Error: duplicate symbol '-[TCocoaOpenGLView acceptsFirstResponder]' in:
  9. Error: duplicate symbol '-[TCocoaOpenGLView resignFirstResponder]' in:
  10. Error: duplicate symbol '-[TCocoaOpenGLView becomeFirstResponder]' in:
  11. Error: duplicate symbol '-[TCocoaOpenGLView lclGetCallback]' in:
  12. Error: duplicate symbol '-[TCocoaOpenGLView lclClearCallback]' in:
  13. Error: duplicate symbol '-[TCocoaOpenGLView lclIsEnabled]' in:
  14. Error: duplicate symbol '-[TCocoaOpenGLView dealloc]' in:
  15. Error: duplicate symbol '-[TCocoaOpenGLView drawRect:]' in:
  16. Error: duplicate symbol '-[TCocoaOpenGLView mouseUp:]' in:
  17. Error: duplicate symbol '-[TCocoaOpenGLView rightMouseUp:]' in:
  18. Error: duplicate symbol '-[TCocoaOpenGLView otherMouseUp:]' in:
  19. Error: duplicate symbol '-[TCocoaOpenGLView mouseDown:]' in:
  20. Error: duplicate symbol '-[TCocoaOpenGLView rightMouseDown:]' in:
  21. Error: duplicate symbol '-[TCocoaOpenGLView otherMouseDown:]' in:
  22. Error: duplicate symbol '-[TCocoaOpenGLView scrollWheel:]' in:
  23. Error: duplicate symbol '-[TCocoaOpenGLView mouseMoved:]' in:
  24. Error: duplicate symbol '-[TCocoaOpenGLView mouseExited:]' in:
  25. Error: duplicate symbol '-[TCocoaOpenGLView mouseEntered:]' in:
  26. Error: duplicate symbol '-[TCocoaOpenGLView mouseDragged:]' in:
  27. Error: duplicate symbol '-[TCocoaOpenGLView rightMouseDragged:]' in:
  28. Error: duplicate symbol '-[TCocoaOpenGLView otherMouseDragged:]' in:
  29. Error: ld: 27 duplicate symbols for architecture x86_64
  30. An error occurred while linking
  31. Error: Error while linking
  32. make[2]: *** [lazarus] Error 1
  33. make[1]: *** [idepkg] Error 2
  34. Error: make: *** [idepkg] Error 2
  35.  

I have no idea how to fix it.

Thanks in advance.
« Last Edit: October 20, 2022, 09:05:39 pm by Espectr0 »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Error ld: 27 duplicate symbols for architecture x86_64
« Reply #1 on: February 27, 2023, 05:40:26 am »
1. Have you have loaded same functions twice?
2. Two files with the same name?
3. Latest release versions of both Lazarus IDE and FPC compiler?

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: Error ld: 27 duplicate symbols for architecture x86_64
« Reply #2 on: February 27, 2023, 11:04:41 pm »
my solution was to reinstall lazarus  :-[

 

TinyPortal © 2005-2018