John Wiegley <[email protected]> writes:

> On Jul 3, 2009, at 2:49 AM, Matt Lundin wrote:
>
>> When recently attempting to build ledger 2.6.2, I received the
>> following error:
>>
>> ,----
>> | option.cc: In function ‘void ledger::<unnamed>::parse_price_setting
>> (const char*)’:
>> | option.cc:895: error: invalid conversion from ‘const char*’ to
>> ‘char*’
>> | make: *** [libledger_la-option.lo] Error 1
>> `----
>>
>> I'm using gcc 4.4.0 on Arch Linux.
>
> Interesting, this is new.  On line 895, just add "const" in front of
> the "char *".

An update on this. I was able to compile ledger 2.6.2 with gcc 4.4.0,
but it required a few additional tweaks. Below are the errors I
received. I fixed each of them per the instructions above.

--8<---------------cut here---------------start------------->8---
option.cc: In function ‘void ledger::<unnamed>::parse_price_setting(const 
char*)’:
option.cc:895: error: invalid conversion from ‘const char*’ to ‘char*’
make: *** [libledger_la-option.lo] Error 1

textual.cc: In function ‘ledger::transaction_t* 
ledger::parse_transaction(char*, ledger::account_t*, ledger::entry_t*)’:
textual.cc:301: error: invalid conversion from ‘const char*’ to ‘char*’
textual.cc:302: error: invalid conversion from ‘const char*’ to ‘char*’
make: *** [libledger_la-textual.lo] Error 1

gnucash.cc: In function ‘ledger::amount_t ledger::convert_number(const 
std::string&, int*)’:
gnucash.cc:204: error: invalid conversion from ‘const char*’ to ‘char*’
make: *** [libledger_la-gnucash.lo] Error 1
--8<---------------cut here---------------end--------------->8---

Best,
Matt


Reply via email to