Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'dlltool' equivalent in Linux

Tags:

linux

gcc

In Windows, an executable called dlltool, given with GCC, is used to generate import library for a DLL file which is used for linking DLL files.

For example, libmylibrary.a for mylibrary.dll. But in Linux (i.e., Ubuntu) I haven't find any equivalent program like this. In gcc (both Windows and Linux), the -l options is used to link these import libraries.

So, is there such an application in Linux that can generate an import library for shared object (.so files)?

like image 994
Junaid Jamil Avatar asked Mar 20 '26 06:03

Junaid Jamil


1 Answers

ld (part of binutils, and invoked by gcc during the link phase) on Linux does not require import libraries; it is capable of reading .so files directly for the symbols required for linking.

like image 137
Ignacio Vazquez-Abrams Avatar answered Mar 22 '26 21:03

Ignacio Vazquez-Abrams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!