www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - pragma(lib) on linux?

reply Ben Hinkle <Ben_member pathlink.com> writes:
It doesn't look like pragma(lib,name) does anything on Linux. I couldn't find
any mention of the supplied lib that dmd echos in -v verbose mode.

For example try file test.d:
pragma(lib,"foo");
int main(){ return 0;}

dmd -v test.d

-Ben
Mar 19 2005
next sibling parent reply =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ben Hinkle wrote:

| It doesn't look like pragma(lib,name) does anything on Linux.
| I couldn't find any mention of the supplied lib
| that dmd echos in -v verbose mode.




Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCPI3x3w+/yD4P9tIRApCPAJ437pwE/jSUkFFnFzdGe3VGKbs+9QCfcu++
eMk3497m+pfoo8XnQH9Yx5k=
=TEUx
-----END PGP SIGNATURE-----
Mar 19 2005
parent "Ben Hinkle" <bhinkle mathworks.com> writes:
 | It doesn't look like pragma(lib,name) does anything on Linux.
 | I couldn't find any mention of the supplied lib
 | that dmd echos in -v verbose mode.



true - but one would expect dmd to support Linux and Windows at roughly the same level. I was posting more out of an expression of (small) disappointment and surprise than a formal bug report. If dmd doesn't support the standard pragmas then who will?
Mar 19 2005
prev sibling parent "Walter" <newshound digitalmars.com> writes:
"Ben Hinkle" <Ben_member pathlink.com> wrote in message
news:d1hkvu$1dvp$1 digitaldaemon.com...
 It doesn't look like pragma(lib,name) does anything on Linux.
It will when I figure out how to embed library references in the ELF object file format.
Mar 20 2005