[fpc-pascal] fp universal library ?

Fred van Stappen fiens at hotmail.com
Tue Feb 11 00:53:16 CET 2014


Hello.

Here next episode of the conversion of a useful unit into a universal library.
In a recent topic i was taking about the total victory of the conversion in Linux OS.
Now im fighting to do it in Windows.
I have Windows 7-64 bit.
If compiling the library with fpc-64bit, all is working perfectly. A 64bit-program can access all the functions of the library.
But, compiling the library with fpc-32bit, if a 32bit-program try to access the 32bit-library, i get that error message :
 
C:\Users\moi>gdb c:\uoslibwin\src\uoslibtest.exe
(gdb) run
Starting program: c:\uoslibwin\src\uoslibtest.exe
[New Thread 3060.0x2b0]
Program received signal SIGSEGV, Segmentation fault.
0x10002c40 in uos_AddDSPVolumeIn () from c:\uoslibwin\src\uos.dll
(gdb)
 
And here with extended  gdb
Program received signal SIGSEGV, Segmentation fault.
0x10002cf0 in SYSTEM_$$_CPUINCLOCKED$LONGINT () from c:\uoslibwin\src\uos.dll
(gdb)
 
I have changed all  cdecl  into stdcall but without luck...
 
Does the fpc-32 bit libraries work only on a Windows-32bit system (or did i do something wrong ?)
Will it be the same for Linux-32bit (inside a multi-arch 64bit system) ?

Many thanks.

Fred.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140211/c2eefc22/attachment.html>


More information about the fpc-pascal mailing list