[Botan-devel] Error building on windows

Chris Garrett cgarrett at degarrah.com
Wed May 25 16:24:28 EDT 2005


I did some investigation and found that passing -ansi causes wcsftime 
not to be declared. I tracked this down to time.h:195. 

Chris


Chris Garrett wrote:

> Hi Jack,
>
> I tried a simple project with <string> and it works. This is the first 
> I have seen of this error. I will look thru the source this afternoon 
> and see if I can find what exactly is going on. I thought I would post 
> here first in case it was a known problem. I have also built botan on 
> linux using GCC 3.4.1. I know there can be significant differences 
> between lin/win but I thought I would mention it anyway.
>
> BTW, I succesfully build on Mac with the dumb-gcc flag. It works well. 
> I really appreciate that you respond to the newsgroup so quickly. I 
> have been using crypto++ for three or four months and have had some 
> problems with platform support. I have posted on their list serveral 
> times and received no response at all. This is a nice change.....
>
> Thank you
>
> Chris
>
>
>
> Jack Lloyd wrote:
>
>> Hmm. This looks a lot like a toolchain problem, since the errors are 
>> happening
>> inside a standard header. Does a simple stub main() that include 
>> <string>
>> compile?
>>
>> There is a GCC bug 
>> (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15065) that may
>> be related, but that is about wcsftime not being found during GCC's 
>> bootstrap.
>>
>> -J
>>
>> On Wed, May 25, 2005 at 10:57:38AM -0600, Chris Garrett wrote:
>>  
>>
>>> Hi, I tried building on windows and got this error.
>>>
>>> Thank you
>>>
>>> Chris
>>>
>>> Details:
>>> Botan 1.4.6
>>> WinXP, GCC 3.4.1, Msys
>>> perl configure.pl gcc-windows-i586
>>>
>>> build log:
>>>
>>> -----------------------------------------------------------------------
>>>
>>> g++ -Ibuild/include -O2 -finline-functions -march=i586 -D_REENTRANT 
>>> -ansi -Wno-long-long -fpermissive -W -Wall -c src\adler32.cpp -o 
>>> build\lib\adler32.obj
>>> In file included from 
>>> d:/opt/chinook/toolchain/gcc/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:46, 
>>>
>>>                from 
>>> d:/opt/chinook/toolchain/gcc/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/iosfwd:50, 
>>>
>>>                from 
>>> d:/opt/chinook/toolchain/gcc/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/bits/stl_algobase.h:70, 
>>>
>>>                from 
>>> d:/opt/chinook/toolchain/gcc/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/bits/char_traits.h:46, 
>>>
>>>                from 
>>> d:/opt/chinook/toolchain/gcc/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/string:47, 
>>>
>>>                from build/include/botan/exceptn.h:11,
>>>                from build/include/botan/base.h:10,
>>>                from build/include/botan/adler32.h:9,
>>>                from src\adler32.cpp:6:
>>> d:/opt/chinook/toolchain/gcc/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:182: 
>>> error: `::wcsftime' has not been declared
>>> d:\opt\chinook\toolchain\gcc\bin\make.exe: *** 
>>> [build\lib\adler32.obj] Error 1
>>>
>>>
>>> _______________________________________________
>>> botan-devel mailing list
>>> botan-devel at randombit.net
>>> http://www.randombit.net/mailman/listinfo/botan-devel
>>>   
>>
>> _______________________________________________
>> botan-devel mailing list
>> botan-devel at randombit.net
>> http://www.randombit.net/mailman/listinfo/botan-devel
>>
>>
>>
>>
>>  
>>
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://www.randombit.net/mailman/listinfo/botan-devel
>
>
>
>



More information about the botan-devel mailing list