> With MSVC you don't have to do anything special. If I try --shared, the > executable just doesn't work. Right, because you just created a dll ;-) What I meant is that if you use the built-in mechanism to export symbols, rather than dlltool, I suspect that ld will simply not bother to check for symbols to export if you're not building a dll.