Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C++ Programming

Problem using CFront 3.03


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

"napi" <n@axiomsol.com> wrote in message

news:1180522313.494102.215100@o11g2000prd.googlegroups.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

On Jun 6, 2:46 am, "JohnQ" <johnqREMOVETHISprogram@yahoo.com>
wrote:

> "napi" <n@axiomsol.com> wrote in message

> news:1180522313.494102.215100@o11g2000prd.googlegroups.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/projects/c_plus_plus/cfront/relea...

Not sure if it's complete though.

Napi

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc