Re: How to obtain library name at compile/preprocessor time?
- From: "Alexei A. Frounze" <alexfru@xxxxxxx>
- Date: Fri, 30 Sep 2005 23:37:27 +0400
"babuyama" <babu.yama@xxxxxxxxx> wrote in message
news:1128108019.886634.197050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> Is there a way to obtain library name at compile/preprocessor time?
>
> Assuming that the compilation unit, myfile.c is part of mylib.a, from
> myfile.c code at compile/preprocessor time, I would like to know that
> the library name is "mylib". I could not find an equivalent of
> __FUNCTION__, __FILE__ defines for getting the library name. Is there
> another way?
No, there's no standard way telling any linked componentes. It's not
specified by the C standard.
Alex
.
- Follow-Ups:
- Re: How to obtain library name at compile/preprocessor time?
- From: babuyama
- Re: How to obtain library name at compile/preprocessor time?
- References:
- How to obtain library name at compile/preprocessor time?
- From: babuyama
- How to obtain library name at compile/preprocessor time?
- Prev by Date: How to obtain library name at compile/preprocessor time?
- Next by Date: Re: Global variables
- Previous by thread: How to obtain library name at compile/preprocessor time?
- Next by thread: Re: How to obtain library name at compile/preprocessor time?
- Index(es):