Problem using CFront 3.03

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
 
J

JohnQ

napi said:
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.

Where did you score a copy of CFront?

John
 
Joined
Jan 22, 2011
Messages
1
Reaction score
0
Help!

> >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.
>



Hi, napi,

I have to compile CFront with g++ version 4.1.2, but I have a lot of problems. Could you please help me with some instructions or suggestion?


Thanks so much,
Wesley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top