Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-01

How to get .def file automatically?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Nikolai Zhubr

Hi!
Perhaps this one has been answered somewhere already, I appologise if so, but I haven't found it in the docs.
How to make fpc (1.06 on win32) leave .def (or .lib) file along with creating a dll so that I can use it to link from gcc? I've found -WD option, however I'm not quite sure what exactly it is for, and anyway it fails:

Free Pascal Compiler version 1.0.6 [2002/04/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Win32 for i386
Compiling dlpmem9x.dpr
Linking dlpmem9x.dll
DLPMEM9X.OW(.text+0x17):dlpmem9x.dpr: undefined reference to `L1' dlpmem9x.dpr(8,1) Error: Error while linking
Closing script ppas.bat

Without -WD it all works fine, but I have to create .def file manually in order to link with gcc.

Best regards, Nikolai Zhubr