[Interest] error: taking address of temporary [-fpermissive]
robert.wood at apostrophe.co.uk
Fri Jun 1 20:40:13 CEST 2012
Adding QMAKE_CXXFLAGS=-fpermissive in additional arguments in the
projects tab does the trick.
I'd like to know why there is the change and how to fix it properly though.
An example of a rogue lines is this:
queryString += "\"" + sqlFormatString(&ui->dateInDateEdit->date()) + "\",";
The routine is defined as follows:
QString enter_invoice_in::sqlFormatString(QDate *date);
So, I'm passing a pointer to a date which is on a form.
On 01/06/12 17:53, Konstantin Tokarev wrote:
> 01.06.2012, 20:11, "Robert Wood"<robert.wood at apostrophe.co.uk>:
>> I have just upgraded to Mageia Linux 2 and am now getting this compile
>> error: taking address of temporary [-fpermissive]
>> This was previously compiling just fine.
>> I'm now running Creator 2.4.1 Based on Qt 4.8.0.
>> Anyone know what is going on please?
> BTW compiler proposes you to add -fpermissive to flags to get this code
> accepted as it was before.
More information about the Interest