Pro*C and VARCHAR pointer arrays

From: Petri Pellinen <ppe_at_niksula.hut.fi>
Date: 21 Jan 92 10:12:12 GMT
Message-ID: <PPE.92Jan21111212_at_daredevil.hut.fi>


Hello everyone,

My Pro*C compiler for MS-DOS makes an interesting error when compiling VARCHAR pointer arrays. If I say in a Pro*C program:

VARCHAR *foo[7];

the precompiler intelligently comes up with the following:

struct {
...
} *foo;

ie. makes a simple pointer out of an array. This is fine after you find the 'feature' in the precompiler and fix the results by hand but I am getting pretty fed up with editing each compilation of my program by hand. Has anyone out there come up with a solution to the problem? Does anyone _have_ the same problem or is it just me? When I called the oracle support number here in Finland the 'support' person just said that it is interesting that the precompiler does what it does. He hadn't come up with the problem before, but admitted after a few tests that it exists.

Comments, suggestions, opinions? anyone?

--
Petri Pellinen		'Shee, you guys are so unhip it's a wonder
			your bums don't fall off.'
			-- Zaphod Beeblebrox
ppe_at_niksula.hut.fi	
Received on Tue Jan 21 1992 - 11:12:12 CET

Original text of this message