PDA

View Full Version : Oracle Pro*C tool using the code=ANSI_C building option


Benoit Gilon
09-08-2003, 08:23 AM
Hello,
I have a very simple program which does nothing except printing a
"Hello World" message to output stream..

The first line is obviously a #include <stdio.h>
The include file being in /usr/include.

When I process this file, with no other options, using the default
code generation option (kr_c) then no problem...

However, when I issue the command,
proc code=ansi_c iname=hello_world.pc
Then, the precompilation failed, here is the first message which is
displayed on screen.

extern int vprintf(const char *, va_list);
..................................1
PCC-S-02201, Encountered the symbol "va_list" when expecting one of
the following:
.... auto, char, <followed by a set of legal token acceptableby PCC>
The symbol auto was substituted for "va_list" to continue.

Do you have an idea about what might cause this behavior.
Basically I do not see why PCC handles such lines as they are part of
a system include file which is included with the #include directive
and the errored line is not part of a macro definition.
My PCC release string is 8.1.7.0.0, under HPUX11.0..

Thank you for any help on this,
Benoit Gilon


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service