🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #34

Can I link gcc generated object code ?

#34
From: Maurizio Ferreira
Date: Mon, 04 Apr 2005 13:54
22 lines
1352 bytes
I'd like to add a gcc generated object code to a Delphi project .
I tried the following example:

in a test.c file :

extern __stdcall int proc (int n)
{ 
   return n+n;
}

I compile this file with
  gcc -c test.c -o test.o

then I try to import it in a Delphi project
but the compiler complains about file format :

{$L 'test.o' }

Bad object file format.


Any suggestion ?
Technical Details
Message-ID: <eig2519qiathhvrscbo1ipb49c6gshs0b8@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!feeder.xsnews.nl!feeder.news-service.com!80.239.136.22.MISMATCH!tsicnews.teliasonera.com!aioe.org!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 109d30,521a93fa4a572b4f,start
X-Google-Attributes: gid109d30,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!feeder.xsnews.nl!feeder.news-service.com!80.239.136.22.MISMATCH!tsicnews.teliasonera.com!aioe.org!not-for-mail
From: Maurizio Ferreira <maurizio.ferreira@selesta.it>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Can I link gcc generated object code ?
Date: Mon, 04 Apr 2005 15:54:23 +0200
Organization: Aioe.org NNTP Server
Lines: 25
Message-ID: <eig2519qiathhvrscbo1ipb49c6gshs0b8@4ax.com>
NNTP-Posting-Host: nOhu8gsG6lpY+6ukftBGvA.domitilla.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
NNTP-Posting-Date: Mon, 4 Apr 2005 13:54:13 +0000 (UTC)
X-Newsreader: Forte Free Agent 1.92/32.572