Hi Liu and others,

>
> If you insist on use of `-nodefaultlibs` or `-nostdlib` you may want to
> see how the linker is invoked by g++ (with `-v` during linking) and copy
> those options, then remove some until none can be removed any further.
>

Good progress now with this suggestion! The order of static libraries was 
slightly more involved than what I had. Now the issue with that _fmode 
function is solved. The little example code builds and runs fine now with 
the LLVM libc++. But I should test mingw with LLVM libc++ with much more 
code to see if it is actually stable. Still I can't believe I'm the only 
person in this world who has build LLVM libc++ with mingw64 gcc, or am I?

Oh yeah, I don't insist on using -nodefaultlibs. But as far as I can see now 
is the only option to prevent the gcc libstdc++.a being linked with it too.

The startfiles thing doesn't seem to be related to my issue at all.

Happy Christmas.

Kind regards,
Maarten 


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to