Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-20 Thread Koenraad Lelong
Koenraad Lelong wrote: Koenraad Lelong wrote: Jeff Pohlmeyer wrote: ... ... Second question : are c-double types and fpc-double types compatible ? This must be : c-float and fpc-double. Sorry for that. Koenraad. ___ fpc-pascal maillist - fpc-pascal@list

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-19 Thread Koenraad Lelong
Koenraad Lelong wrote: Koenraad Lelong wrote: Jeff Pohlmeyer wrote: ... I'm trying this and it seems to work, partly. I wrote a clone in fpc of the temp-program, and encountered some strange things. The library successfully detects the interface, and one device (only one connected at the time).

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-19 Thread Florian Klaempfl
Nikolay Nikolov wrote: Koenraad Lelong wrote: Second question : are c-double types and fpc-double types compatible ? I think so. Perhaps cfloat and cdouble should be added to the ctypes unit? Already in the cvs. ___ fpc-pascal maillist - fpc-pascal@li

[fpc-pascal] Re: Help needed with interfacing to C-object-files

2005-03-17 Thread Jeff Pohlmeyer
> Last question to Jeff Pohlmeyer : could you explain > how you made that unit ? Hello, Koenraad... There is not really a one-size-fits-all solution to this, but in general this is what I did for this particular case: # be sure to clean up any leftovers first: rm -f all.h all_inc.h all_mac.

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-16 Thread Nikolay Nikolov
Koenraad Lelong wrote: Second question : are c-double types and fpc-double types compatible ? I think so. Perhaps cfloat and cdouble should be added to the ctypes unit? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-16 Thread Koenraad Lelong
Koenraad Lelong wrote: Jeff Pohlmeyer wrote: ... About the beer, it's pretty close. 1-wire devices are devices like termometers, AD-converters and other devices that can be accessed over 1-wire (actually two : gnd). And I would like to use these thermometer-devices with my Zaurus PDA to measure t

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-14 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: If you want to take a look, I've put it on http://users.edpnet.be/~koenraad/www Okay, try this... In your ulinuxgnu300 directory, type: make clean make linux ar -r libonewire.a *.o ranlib libonewire.a And then move the resulting "libonewire.a" file into a directory

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-14 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: If you want to take a look, I've put it on http://users.edpnet.be/~koenraad/www Okay, try this... In your ulinuxgnu300 directory, type: make clean make linux ar -r libonewire.a *.o ranlib libonewire.a And then move the resulting "libonewire.a" file into a directory

[fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-14 Thread Jeff Pohlmeyer
> If you want to take a look, I've put it on > http://users.edpnet.be/~koenraad/www Okay, try this... In your ulinuxgnu300 directory, type: make clean make linux ar -r libonewire.a *.o ranlib libonewire.a And then move the resulting "libonewire.a" file into a directory where the link

Re: [fpc-pascal] RE: Help needed with interfacing to C-object-files.

2005-03-13 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: I still don't understand what sort of c "package" you have that generates a bunch of object files, but doesn't create a shared library or static archive. Does it have its own makefile or configure script? Sometimes adding --enable-shared or --enable-static to configure will

Re: [fpc-pascal] RE: Help needed with interfacing to C-object-files.

2005-03-12 Thread Marc Santhoff
Am So, den 13.03.2005 schrieb Jeff Pohlmeyer um 00:03: [..] > > > Maybe I'm too used to using Delphi, where such things > > > are hidden from the developper. > > > That's the nice part of Delphi. > > You are talking about searching the system for object > files generated by another compiler and

[fpc-pascal] RE: Help needed with interfacing to C-object-files.

2005-03-12 Thread Jeff Pohlmeyer
I still don't understand what sort of c "package" you have that generates a bunch of object files, but doesn't create a shared library or static archive. Does it have its own makefile or configure script? Sometimes adding --enable-shared or --enable-static to configure will tell it to build a li

[fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-09 Thread Jeff Pohlmeyer
> Let me explain more : the header file is used in at least > five source-files, so compiling gives (at least) five .o > files, but none with the name of the header-file. >From the command line : ar -r libDallas.a file1.o file2.o ... and then, in your program: {$LINKLIB Dallas} - Jef