N
napi
I managed to compile CFront 3.03 on my Ubuntu Linux kernel 2.6.20-15.
I compiled
CFront with g++ version 4.1.2 and used bison 2.3 to process the
gram.y file.
When I compiled this program using "CC -F hello.C":
---------------------------------------
hello.C-------------------------------------------------
struct y
{ int p;
} r;
main()
{
}
--------------------------------------------------------------------------------------------------
it gave these error messages:
# 1 "hello.C"
/* <<AT&T C++ Language System <3.0.3> 05/05/94>> */
char __cfront_version_303_xxxxxxxx;
/* < hello.C > */
# 1 "hello.C"
char *__vec_new ();
# 1 "hello.C"
char __vec_delete ();
typedef int (*__vptp)();
struct __mptr {short d; short i; __vptp f; };
# 1 "hello.C"
extern struct __mptr* __ptbl_vec__hello_C_[];
# 1 "hello.C"
"hello.C", line 4: error: syntax error, unexpected expression object
function type object constructor
"hello.C", line 4: error: syntax error, unexpected $undefined
"hello.C", line 4: error: type expected for r
----------------------------------------------------------------------------------------------------
g++ compiles "hello.C" without any problem.
What could be the problem? Thanks for any tips.
Btw, does anyone have the latest 'gram.y' for use with
CFront that has been updated since CFront version 3.03?
Napi
I compiled
CFront with g++ version 4.1.2 and used bison 2.3 to process the
gram.y file.
When I compiled this program using "CC -F hello.C":
---------------------------------------
hello.C-------------------------------------------------
struct y
{ int p;
} r;
main()
{
}
--------------------------------------------------------------------------------------------------
it gave these error messages:
# 1 "hello.C"
/* <<AT&T C++ Language System <3.0.3> 05/05/94>> */
char __cfront_version_303_xxxxxxxx;
/* < hello.C > */
# 1 "hello.C"
char *__vec_new ();
# 1 "hello.C"
char __vec_delete ();
typedef int (*__vptp)();
struct __mptr {short d; short i; __vptp f; };
# 1 "hello.C"
extern struct __mptr* __ptbl_vec__hello_C_[];
# 1 "hello.C"
"hello.C", line 4: error: syntax error, unexpected expression object
function type object constructor
"hello.C", line 4: error: syntax error, unexpected $undefined
"hello.C", line 4: error: type expected for r
----------------------------------------------------------------------------------------------------
g++ compiles "hello.C" without any problem.
What could be the problem? Thanks for any tips.
Btw, does anyone have the latest 'gram.y' for use with
CFront that has been updated since CFront version 3.03?
Napi