By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,513 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,513 IT Pros & Developers. It's quick & easy.

Problem using CFront 3.03

P: n/a
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.305/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

May 30 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"napi" <na**@axiomsol.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...
>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
Jun 5 '07 #2

P: n/a
On Jun 6, 2:46 am, "JohnQ" <johnqREMOVETHISprogram...@yahoo.com>
wrote:
"napi" <n...@axiomsol.comwrote in message

news:11**********************@o11g2000prd.googlegr oups.com...
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
I bought it from Lucent some time ago. You could also download it
from:
http://www.softwarepreservation.org/...e_3.03/source/

Not sure if it's complete though.

Napi

Jun 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.