473,769 Members | 3,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.305/05/94>*/
char __cfront_versio n_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__hel lo_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
2 2785

"napi" <na**@axiomsol. comwrote in message
news:11******** **************@ o11g2000prd.goo glegroups.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
On Jun 6, 2:46 am, "JohnQ" <johnqREMOVETHI Sprogram...@yah oo.com>
wrote:
"napi" <n...@axiomsol. comwrote in message

news:11******** **************@ o11g2000prd.goo glegroups.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2309
by: Aaron Prohaska | last post by:
I have just run into a problem where I have a page that posts back to itself to execute code, except when the page does the post back it somehow executes code that is in our home page for the site. The only reason I know that is happening is because I keep track of the pages executed by the user to see how they have traversed the site. Has anyone every seen anything like this before? Regards, Aaron Prohaska
10
503
by: Rohit Upadhyay HCST | last post by:
Hi !!! I wanted to migrate to c++, But Im in no hurry so I actually want to see how the C++ calls get translated into C, using Cfront(the original thing that Bjourne developed). But I cant find any place to download it from ? Any links,resources ?
15
3791
by: bugzilla | last post by:
hi,all, I have a C++ program need to convert to c language to be used in a emabedded system. the problem is that the original code was writtern in C++ language with Parent class and some child class. How can I invert these C++ code into pure c code by using struct in C language? Can somebody give me any ideas? thanks. For example, how to conver the following code into pure c code?
9
2823
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
1
2052
by: Wormald | last post by:
I am trying to recreate a legacy 68K Apollo development environment on Windows. (Nearly there excpet for the CFRONT). We are currently outsourcing this work but would ideally like to bring it inhouse. All I need now is a CFRONT Compiler to translate C++ source to C source. Our old Apollo's are gone, and need to replace with an equivalent Microsft based Compiler/translator.
16
2742
by: Bunny.Joy | last post by:
Hi, I know that some granddaddy-level C++ compiler can compile C++ code into a C intermediate. Apart from that, however, I can not find any modern compiler to do that. And in fact, I think, this factor is very pragmatical for a C programmer to learn Java more effectively. Any one can give me some information on that ? Tools, compilers or other methods applicable are all attractive to me. But where to get them?
8
1718
by: Hans-Dieter Dreier | last post by:
Hi NG, I have an inheritance like this: class a_interface { virtual bool x() = 0; }; class a_version_1 : public a_interface
5
1996
by: JohnQ | last post by:
What is the status of cfront in regards to copyright and licensing? The source code is available on the web in at least one location (should it be?). John
53
2664
by: None | last post by:
Hi, I am a game developer, sometimes "indy" and sometimes for a small-sized company. I can't speak for all game developers, but everywhere I've ever seen people working on games, execution speed has always been the most important constraint in writing code. Writing readable and maintainable code is important, but takes a back seat to execution speed. I work with DirectX and/or OpenGL, always in C++. There are plenty of things that...
0
9420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7401
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.