This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Issues with gcc 3.4.2
- From: "Schouten, Frits JF" <Frits dot Schouten at bluescopesteel dot com>
- To: <gcc at gnu dot org>
- Date: Tue, 18 Jan 2005 10:57:17 +1300
- Subject: Issues with gcc 3.4.2
Dear Sir/Madam,
After upgrading a Sun sparc5 to a Sun blade150 there was the opportunity to upgrade to the latest gcc compiler.
I went from 2.95.3 to 3.4.2.
Most or my C is programmed around the MySQL api.
Today there was the need to recompile on of the programs and it failed miserably on the SQL statements.
A typical query would look like this:
//---------------------------------------------------------------------
sprintf(q,"
UPDATE delays
SET item_2 = %f,
event_code = %d,
heat_nr = %d
WHERE id = %d;",
pData->speed, pData->event_code, pData->heat_nr,tmp_id);
//---------------------------------------------------------------------
This is a snipped of the errors I get.
myput_delays.c:137: error: missing terminating " character
myput_delays.c:138: error: `UPDATE' undeclared (first use in this function)
myput_delays.c:138: error: (Each undeclared identifier is reported only once
myput_delays.c:138: error: for each function it appears in.)
The only way to solve this issue is to put the whole SQL query on the one line.
This is a horrifying thought. I have about 30,000 lines of code involved with SQL queries and some query strings are easily bigger than 20kbyte.
Is there some compiler flag that need to be set to make the above work again?
If not I have to revert back to gcc 2.95
Regards,
Frits Schouten
Process Computing Department
New Zealand Steel Ltd
Mission Bush Rd Glenbrook
Private Bag 92121
Phone: +64 +9 375 8111 ext 5261
Email: Frits.Schouten@BlueScopeSteel.com
EOM
NOTICE - This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message.
EOM
NOTICE - This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message.