Thread overview
pragma(lib) on linux?
Mar 19, 2005
Ben Hinkle
Mar 19, 2005
Thomas Kühne
Mar 19, 2005
Ben Hinkle
Mar 20, 2005
Walter
March 19, 2005
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


March 19, 2005
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.

# Predefined Pragmas
# All implementations must support these, even if by just ignoring them.

Thomas
March 19, 2005
> | 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.
>
> # Predefined Pragmas
> # All implementations must support these, even if by just ignoring them.

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?


March 20, 2005
"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.