Hi Holger, please delete the variables sqlc80 and sqlc8 from cpc.h. They're not needed anymore.
Regards, Thomas -----Original Message----- From: Holger Schurig [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 7. Mai 2002 12:39 To: [EMAIL PROTECTED] Subject: problem with precompiler: double definition of sqlc80 We have a problem with the precompiler. For our project, the precompiler creates code like this: ... /*VARARGS*/ static void sqlc62 (va1ix, va2ix, va3ix, cnt, p) long va1ix, va2ix, va3ix, cnt; char* p; {typedef char q[5]; long i; char* pi = p; for (i = 0; i < cnt; i++) { sqlva1 [va1ix + i - 1].sc.va1indi = SQLVACM; sqlva1 [va1ix + i - 1].sc.va1indva2 = (short) va2ix; sqlva1 [va1ix + i - 1].sc.va1indva3 = (short) va3ix; sqlva1 [va1ix + i - 1].cm.va1offs = (long)((char*)pi-(char*)0), pi += sizeof (q); } } /*VARARGS*/ static void sqlc80 (va1ix, va2ix, va3ix, cnt, p) long va1ix, va2ix, va3ix, cnt; char* p; {typedef char q[81]; long i; char* pi = p; for (i = 0; i < cnt; i++) { sqlva1 [va1ix + i - 1].sc.va1indi = SQLVACM; sqlva1 [va1ix + i - 1].sc.va1indva2 = (short) va2ix; sqlva1 [va1ix + i - 1].sc.va1indva3 = (short) va3ix; sqlva1 [va1ix + i - 1].cm.va1offs = (long)((char*)pi-(char*)0), pi += sizeof (q); } } ... The problem here is that there is already a variable sqlc80 in cpc.h, line 221. So gcc bails out at the function definition and the project won't compile. Is there a short solution out of this? Greetings, Holger -- MN-Logistik GmbH http://www.mn-logistik.de Holger Schurig Network Administrator Dieselstr. 18 61191 Rosbach v.d.H�he Tel: 06003/9141-0 Fax: 06003/9141-49 _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general
