und mittels
objdump -x delforlazarus.so
sieht man auch das es funktioniert hat.
Doch leider Kompiliert meine "Demo" applikation die ich im Anhang mit angehängt habe, leider nicht.
aus
/sda5/sda5/Tools/Projects/DelForLazarus/oobjects.pas(43,24) Hint: Parameter "Item" not used
/sda5/sda5/Tools/Projects/DelForLazarus/oobjects.pas(140,27) Hint: Local variable "I" does not seem to be initialized
/sda5/sda5/Tools/Projects/DelForLazarus/oobjects.pas(153,31) Hint: Local variable "Index" does not seem to be initialized
unit1.pas(33,51) Hint: Parameter "CanClose" not used
/usr/bin/ld: warning: /sda5/sda5/Tools/Projects/DelForLazarus/TestApp_So/link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -ldelforlazarus
project1.lpr(20,1) Error: Error while linking
project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping
Werde ich nun aber nicht schlau, denn Schließlich liegt die so file direkt im Pfad.
Diese Ominöse link.res, legt der Kompiler auch an, aber was es mit dieser auf sich hat habe ich auch noch nicht verstanden.
verrät mir jemand was ich nun schon wieder falshc gemacht habe ?
Die Library habe ich mittels :
Code: Alles auswählen
library delforlazarus;
{$mode objfpc}{$H+}
uses
Classes,
delforinterf
{ you can add units after this };
{$IFDEF WINDOWS}{$R delforlazarus.rc}{$ENDIF}
exports
Formatter_Destroy,
Formatter_Create,
Formatter_LoadFromFile,
Formatter_LoadFromList,
Formatter_Parse,
Formatter_Clear,
Formatter_WriteToFile,
Formatter_GetTextStr,
Formatter_SetTextStr,
Formatter_SetOnProgress,
Formatter_LoadCapFile,
Formatter_SaveCapFile,
Formatter_Version;
end.
Erzeugt.