Mail Archives: cygwin/2009/04/13/05:10:36
Brian and Victoria wrote:
> Brian and Victoria wrote:
>> I'm on the bleeding edge, using cygwin 1.7 and g++ 4.3.2 with
>> -std=c++0x (enables C++0x experimental features, and access to
>> variadic template parameters in my case).
>>
>> Prior to switching on c++0x, there were no problems. Afterwards
>> though, the linker (via g++) complains about undefined references to
>> snprintf(). I'm linking with "stdc++", and tried also linking with
>> "c" (C99 library) as well, but no luck. Anyone else running into this?
<g> Actually, adding -lc is kind of a bad idea on the bleeding edge right
now, and only likely to make your problems worse FTM. And lstdc++ should
already be on your commandline anyway, put there by the driver, as presumably
you know, so are you doing something unusual like hand linking it or using the
gcc driver instead of g++?
>> I've got a build in progress with -std=gnu++0x instead (GNU dialect of
>> the experimental C++0x features), and will see how that goes.
> This has resolved the problem, so something may be amiss with the
> standard dialect or there's something forgiving about the GNU dialect.
¿STC, por favor? Or a look at the mangled missing symbols as seen in the .o
file with --save-temps?
cheers,
DaveK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -