2011/4/4 Alen Skondro <askon...@gmail.com>:
> Hello, I've built my own gcc toolchain (4.6.1) targeting
> i686-w64-mingw32 and so far everything worked fine until I decided to
> use the profile functionality.
>
> When compiling with -p -pg, linker reports undefined references to 
> _monstartup.
> I looked in ming64 CRT and found out that  _monstartup is defined in
> gcrt0.c but never gets included in libgmon.a, as defined in
> Makefile.am.
> But for some reason gcc is eagerly looking for it.
>
> Is this a misunderstanding between gcc and mingw64 or something else?
>
> BTW I'm using mingw64 svn4105.
>
> best regards,
> Alen

Hmm, curious about this. I just test i686-w64-mingw32 and
x86_64-w64-mingw32 toolchain with -p -pg and I get no link failure and
things are working as expected.
Could you provide me your command-line options, and are you using
trunk crt, or the 1.0 branch one?

Regards,
Kai

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to