How do I use an "o" file? lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- JimKueneman · 2014-08-20 02:50 I am working on converting this: https://github.com/signal11/hidapi When I run the make file in the mac folder I get an "hid.o" file.  Once I get the C header file translated to pascal what do I do to link in the "hid.o" file and call a function in the pascal translated file? Jim ---------------------------------------------------------------------- Leledumbo · 2014-08-20 03:41 Quote from: JimKueneman on August 20, 2014, 04:50:53 amWhen I run the make file in the mac folder I get an "hid.o" file.  Once I get the C header file translated to pascal what do I do to link in the "hid.o" file and call a function in the pascal translated file? Code: [Select]{$L thatfile.o}Note the object file format (differs per platform AFAIK) and all other things that it uses, including but not limited to standard C library. ---------------------------------------------------------------------- JimKueneman · 2014-08-20 03:55 Thanks I found that.  As you said I am getting a Quoteld: warning: ignoring file hid.o, file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked (i386): hid.o Error.  I built the hid.o file on the machine I am running Lazarus.  Jim ---------------------------------------------------------------------- Leledumbo · 2014-08-20 04:24 The error message is clear. You did read my warning, didn't you? Where you build the .o is not a problem, but HOW you build it could be the problem.