When compiling a static lib to be linked against with visual studio 2008 I needed to compile with -fno-leading-underscore (since vs2k8 expects symbol names from c static libraries to be "symname" instead of "_symname" as it currently exports).
Adding -fno-leading-underscore didn't make a difference, all symbols still had a leading underscore. -- Summary: -fno-leading-underscore doesn't work Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jkolb at brandeis dot edu GCC target triplet: x86_64-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36280