Re: Passing names of libraries to linker.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> MS C++ compiler supports a
> 
> #pragma comment(lib, "library.lib")
> 
> directve, that causes the compiler to pass the quoted file name to the
> linker. The linker is expected to add this file name to the list of
> libraries to be searched for external symbols. Is there a similar mechanism
> in gcc/g++?

I do not think this behavior (#pragma comment(lib, "library.lib")) is
written in C or C++ standart (gcc is refering to these standarts not
to microsoft or any other...).

I think your answer about linking will be answered on this page:
http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Link-Options.html

Arturas Moskvinas


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux