This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-pthread


Hi!

I know that the compiler option -pthread set's all the appropriate flags

for building a MT application.
However we have some libraries that are used by both single and
multithreaded applications and therefore we need to do some ifdef's.

Which flag should we be looking for? Does -pthread set anything else
than __REENTRANT etc

Thanks!

/Stefan

--
The Heineken Uncertainty Principle:
        You can never be sure how many beers you had last night.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]