PureBoard
http://forums.purebasic.com/german/

objc Info-Meldungen bei OpenLibrary
http://forums.purebasic.com/german/viewtopic.php?f=28&t=29702
Seite 1 von 1

Autor:  ronny2016 [ 26.06.2016 12:12 ]
Betreff des Beitrags:  objc Info-Meldungen bei OpenLibrary

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:

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:

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

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde [ Sommerzeit ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/