Re: How to obtain library name at compile/preprocessor time?



Thanks for the replies. In general, I agree that if the compilation
step does not have the a-priori knowledge of the library it is going to

be part of - then it cann't know the library name.


But, in my case, during the build process, I know what source files
belong to what library. So, I was wondering if there is any compiler
flag that can be used to pass the library name on the compile line,
which will be available in the source file?

.