objc Info-Meldungen bei OpenLibrary

MAC OSX spezifisches Forum
Beiträge, die plattformübergreifend sind, gehören ins 'Allgemein'-Forum.
ronny2016
Beiträge: 1
Registriert: 15.06.2016 23:01

objc Info-Meldungen bei OpenLibrary

Beitrag von ronny2016 »

Hallo,
ich bin gerade dabei die Funktionen für dynamischen Library's auszuprobieren und erhalte bei mac os x 10.11.5 folgende Info-Meldung beim Programmstart:
(unter Linux und Windows NICHT):

objc[80568]: Class PBApplicationDelegate is implemented in both /tmp/PureBasic.0 and /Users/roy/purebasic/sources/ReturnPayload.dylib. One of the two will be used. Which one is undefined.
objc[80568]: Class PBApplication is implemented in both /tmp/PureBasic.0 and /Users/roy/purebasic/sources/ReturnPayload.dylib. One of the two will be used. Which one is undefined.
objc[80568]: Class PBMenuDelegate is implemented in both /tmp/PureBasic.0 and /Users/roy/purebasic/sources/ReturnPayload.dylib. One of the two will be used. Which one is undefined.
objc[80568]: Class PBMenuObject is implemented in both /tmp/PureBasic.0 and /Users/roy/purebasic/sources/ReturnPayload.dylib. One of the two will be used. Which one is undefined.
objc[80568]: Class PBGadgetList is implemented in both /tmp/PureBasic.0 and /Users/roy/purebasic/sources/ReturnPayload.dylib. One of the two will be used. Which one is undefined.
objc[80568]: Class PB_NSFlippedView is implemented in both /tmp/PureBasic.0 and /Users/roy/purebasic/sources/ReturnPayload.dylib. One of the two will be used. Which one is undefined.
objc[80568]: Class PBGadgetFunctions is implemented in both /tmp/PureBasic.0 and /Users/roy/purebasic/sources/ReturnPayload.dylib. One of the two will be used. Which one is undefined.

Das kurze Programm läuft ordnungsgemäß ab, halt nur diese komische Info-Meldungen.

Nachfolgend noch der Programm-Code:

ReturnPayload.pb ( kompiliert als Shared.dylib )

Code: Alles auswählen


ProcedureDLL test(x.l)
  OpenConsole()
  PrintN("Ich bin eine DLL-Datei und bekam als Argument "+Str(x)+" übergeben")
  Delay(2000)
EndProcedure

Testlib.pb ( kompiliert als Console Programm )

Code: Alles auswählen


OpenConsole()

Prototype Test(x.l)
lib = OpenLibrary(#PB_Any, "/Users/roy/purebasic/sources/ReturnPayload.dylib")

If lib
  PrintN("open Lib")
  dllFunction.Test = GetFunction(lib, "test")
  dllFunction(2)
  CloseLibrary(lib)
Else
  PrintN("open not Lib")
EndIf

Hat jemand eine Ahnung, wie man diese Informationen beim Programmstart unterdrücken kann?

Vielen Dank!
Mit freundlichen Grüßen
Roy