Originally Posted by
matsp
Ordering of object/lib does normally not matter, but there are some situations where it does. For example, if the linker expects to find DllMain before it encounters the .lib version (which is the case for example if you want to implement your own version of other library functions), then you have to make sure that YOUR object file is BEFORE the .lib - this is the normal ordering for Visual Studio anyways, so it won't make much difference.
If it works like I described above, that the DllMain() is introduced from a .lib if it's not part of the object files, you'd get a linker error for duplicate symbols if you have the libs first then the main object files - but there's no real reason for that to happen unless you go out of your way to create such a situation. Just like buying a car with the steering wheel on the right-hand side is quite easy here in England, but a car-dealer in the US would not hold many of those in stock, so the fact that it makes it awkward to drive such a car in the US is not really an issue for you and me.
--
Mats