Recent

Author Topic: Using a .o file from another compiler : Possible ?  (Read 3466 times)

sinfoni

  • Jr. Member
  • **
  • Posts: 56
Using a .o file from another compiler : Possible ?
« on: June 07, 2010, 03:16:10 am »
Hi,

Is it possible to use a .o file created by one compiler and to link this .o file with a pascal project using fpc ?

André.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
Re: Using a .o file from another compiler : Possible ?
« Reply #1 on: June 07, 2010, 03:30:08 am »
« Last Edit: June 07, 2010, 03:33:29 am by theo »

sinfoni

  • Jr. Member
  • **
  • Posts: 56
Re: Using a .o file from another compiler : Possible ?
« Reply #2 on: June 07, 2010, 08:02:25 am »
Thanks for the tip. In fact, I tried to do this kind of linking, but I didn't know the clauses like these:
Code: [Select]
{$link chello.o}
{$linklib c}
I'll try them asap.

 

TinyPortal © 2005-2018