[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] strptime not in MinGW time.h
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] strptime not in MinGW time.h |
Date: |
Wed, 19 May 2010 08:32:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) |
Jack Lloyd <address@hidden> writes:
> On Wed, May 19, 2010 at 05:56:43AM -0400, Stephen Leake wrote:
>
>> > This sounds like maybe mingw missed it. Maybe it will appear in a future
>> > release?
>> >
>> > http://www.mail-archive.com/address@hidden/msg17739.html
>>
>> Hmm. That says it's merely a header problem. So I added a local
>> declaration of the function in dates.cc:
>>
>> extern char *strptime (__const char *__restrict __s,
>> __const char *__restrict __fmt, struct tm *__tp);
>>
>> but now I get a link error:
>>
>> dates.o: In function `ZN6date_t24from_formatted_localtimeERKSsS1_':
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_string.h:1456:
>> undefined reference to `strptime(char const*, char const*, tm*)'
>
> Should it be declared as extern "C"? The compiler may be looking for
> the mangled name with this declaration.
Good point. But it didn't help; same link error.
--
-- Stephe
- [Monotone-devel] strptime not in MinGW time.h, Stephen Leake, 2010/05/18
- Re: [Monotone-devel] strptime not in MinGW time.h, Derek Scherger, 2010/05/18
- Re: [Monotone-devel] strptime not in MinGW time.h, Thomas Moschny, 2010/05/19
- Re: [Monotone-devel] strptime not in MinGW time.h, Stephen Leake, 2010/05/20
- Re: [Monotone-devel] strptime not in MinGW time.h, Derek Scherger, 2010/05/20
- Re: [Monotone-devel] strptime not in MinGW time.h, Stephen Leake, 2010/05/21
- Re: [Monotone-devel] strptime not in MinGW time.h, Thomas Keller, 2010/05/21
- Re: [Monotone-devel] strptime not in MinGW time.h, Stephen Leake, 2010/05/22
- Re: [Monotone-devel] strptime not in MinGW time.h, Stephen Leake, 2010/05/22
- Re: [Monotone-devel] strptime not in MinGW time.h, Thomas Keller, 2010/05/22