Re: Errors compiling abiword in visual studio

From: Prashant Bafna <appu.bafna_at_gmail.com>
Date: Sat Mar 31 2012 - 23:49:41 CEST

Hi,

These errors are VS2010 specific, as the CComPtr::CComPtr(int)
constructor is removed in 2010 which allowed a CComPtr object to be
constructed from the NULL macro but A CComPtr can still be constructed
from NULL, which is defined as 0, but will fail if constructed from an
integer other than literal 0.

Make the changes in the lines 425,429 of src/text/ptbl/xp/pp_AttrProp.cpp

m_pProperties->set(szName, new PropertyPair(szValue2, nullptr));

m_pProperties->insert(szName, new PropertyPair(szValue2, nullptr));

Ref: http://msdn.microsoft.com/en-us/library/bb531344.aspx

Prashant

On Sat, Mar 31, 2012 at 10:03 PM, Abhishek Ravi
<abhishekravi1992@gmail.com> wrote:
> Hi,
>
> Yes, I did. The other errors I fixed, it is the errors in utility -
>
> Error   2       error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member
> could not be initialized        c:\Program Files (x86)\Microsoft Visual
> Studio 10.0\VC\include\utility  163     1       LibAbiWord
> Error   1       error C2440: 'initializing' : cannot convert from 'int' to
> 'const PP_PropertyType *'       c:\Program Files (x86)\Microsoft Visual
> Studio 10.0\VC\include\utility  163     1       LibAbiWord
>
> That are causing a problem
>
> On Sun, Apr 1, 2012 at 12:22 AM, Prashant Bafna <appu.bafna@gmail.com> wrote:
>> Hi,
>>
>> Did you apply all 5 of them (for LibAbiWord , msvc2008, plugins, src,
>> strptime) ?
>>
>> Prashant
>>
>> On Sat, Mar 31, 2012 at 9:38 PM, Abhishek Ravi
>> <abhishekravi1992@gmail.com> wrote:
>>> Hi,
>>>
>>> Yes, I applied those patches. But I still get these errors -
>>>
>>> Error   2       error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member
>>> could not be initialized        c:\Program Files (x86)\Microsoft Visual
>>> Studio 10.0\VC\include\utility  163     1       LibAbiWord
>>> Error   1       error C2440: 'initializing' : cannot convert from 'int' to
>>> 'const PP_PropertyType *'       c:\Program Files (x86)\Microsoft Visual
>>> Studio 10.0\VC\include\utility  163     1       LibAbiWord
>>>
>>> these errors are in the utility file.
>>>
>>> How do I fix these?
>>>
>>> On Sat, Mar 31, 2012 at 11:35 PM, Prashant Bafna <appu.bafna@gmail.com> wrote:
>>>> Hi,
>>>>
>>>> There are some missing linkages because of which these errors are
>>>> coming, use the patches from the Bug Fix thread by Diana Maria
>>>> Prajescu, from
>>>>
>>>> http://www.abisource.com/mailinglists/abiword-dev/2012/Mar/0034.html
>>>> http://www.abisource.com/mailinglists/abiword-dev/2012/Mar/0036.html
>>>>
>>>> it works !
>>>>
>>>> Regards,
>>>> Prashant Bafna
>>>>
>>>>
>>>> On Sat, Mar 31, 2012 at 8:36 PM, Abhishek Ravi
>>>> <abhishekravi1992@gmail.com> wrote:
>>>>>
>>>>> Hi,
>>>>> I am Abhishek, a computer engineering student at the National
>>>>> University of Singapore. I am extremely interested in taking part in
>>>>> Gsoc 2012, and am interested in the docx format support project.
>>>>>
>>>>> In order to get started, I tried building Abiword using visual studio
>>>>> following the instructions here
>>>>> (http://www.abisource.com/wiki/Developing_AbiWord_on_Windows_using_Visual_C%2B%2B),
>>>>> however there are a number of errors,
>>>>>
>>>>> Error   1       error C2440: 'initializing' : cannot convert from 'int' to
>>>>> 'const PP_PropertyType *'       c:\Program Files (x86)\Microsoft Visual
>>>>> Studio 10.0\VC\include\utility  163     1       LibAbiWord
>>>>> Error   2       error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member
>>>>> could not be initialized        c:\Program Files (x86)\Microsoft Visual
>>>>> Studio 10.0\VC\include\utility  163     1       LibAbiWord
>>>>> Error   3       error C3861: 'strptime': identifier not
>>>>> found   C:\Users\Abhishek\Gsoc\abiword\src\af\util\xp\ut_std_string.cpp 394     1       LibAbiWord
>>>>>
>>>>> Could someone please help me fix these?
>>>>>
>>>>> Thanks,
>>>>> Abhishek
Received on Sat Mar 31 23:49:50 2012

This archive was generated by hypermail 2.1.8 : Sat Mar 31 2012 - 23:49:50 CEST