Mulitple DllMain in the program how to prevent that
<p>Today I found an interest thing when I debug a program. There are two DLLMains compiled into the final program. One in the main program, the another in a third party static library. I am using MSVC 2005, the compiler issued no errors/warnings.</p>

<p>My question is - how to prevent this from happening again? We have a dozen static libraries to link.</p>
