Hello Ludo, thanks a lot. Yes. I included in exports the name of the function. In Win32 it goes ok but it is in Mac OSX where it doesn't go right.
With "nm" I get function name so it is on library. Juan. El 06/08/2011 16:16, "Ludo Brands" <[email protected]> escribió: > > > ld: symbol(s) not found for architecture i386 > Error: Error while linking > > > at compiling. > > > I've tried with GetProcedureAddress (adapting code) and LoadLibrary loads > the library but GetProcedureAddress returns nil. > > > Function in DLL is very simple: > > > function DllMessage(): Integer; > begin > Result:= 1; > end; > > > > Did you export DllMessage() ? > > exports DLLMessage; > > Try from the console and run (change libyourlib.dylib with the name of your > library): > > nm libyourlib.dylib | grep -i DllMessage > > and check if it is in the list. > > Ludo
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
