Sorry to bother you again - but I'm just too stupid to get it to work.

Using cygwin I did a gcc -c adler32.c
then I renamed the created adler32.o to adler32.obj.

But when trying to link I get a "Undefined symbol: ZLIBEX..."

I never used gcc on Windows and I'm quite stuck with this OBJ-Files.

For D7 they where compiled using

bcc -c -6 -O2 -Ve -X- -pr -a8 -b -d -k- -vi -tWM -r -RT- -DFASTEST -n%OutDir% adler32.c

Perhaps someone out there is able to provide me with a little HowTo?

regards
Lukas

Michael Van Canneyt schrieb:

On Fri, 4 Jan 2008, Lukas Gradl wrote:


Michael Van Canneyt schrieb:
On Fri, 4 Jan 2008, Lukas Gradl wrote:

Anyone got FastZLib to compile with FPC?

(http://www.dellapasqua.com/delphizlib/)

When it links the .OBJ-Files there occurs an "Illegal COFF Magic while
reading" and the name of the OBJ-File.

Could'nt find an information in that - seems that Borland-C compiled files
can
not be read by ld.
This is correct, it is not the same format.


As there are the C-Sources as well perhaps anyone can tell me how to
create
appropriate .OBJ-Files - or perhaps anyone else already got FastZLib link
with
FPC?
You'll need to recompile the .obj files from the C sources.

Michael.
hmmm - can you give me a hint with which compiler and perhaps with which
options I've to compile so the .OBJ is compatible to the linker?

Simply using gcc should do it.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


--

----------------------------
software security networks
Lukas Gradl <lazarus#ssn.at>
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-720-300168-0
Fax: +43-512-341033-19
----------------------------

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to