473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

New compiler?

Hi!

I have some autogenerated code that doen't compile in my compiler. I
get the error message:
parse error before ',' token on line 3
parse error before ',' token on line 13

I'm using gcc 3.2. Do I need a different compiler? I also include
systemc 2.0.1

public:
virtual void cycle_start(
const sc_ufixed<D_width,D_width> dx,
const sc_ufixed<D_width,D_width> dy,
const sc_ufixed<6,6> cmd,
const sc_ufixed<6,6> cshiftcnt,
const sc_ufixed<1,1> cshiftleft,
sc_ufixed<D_width,D_width> &dout,
sc_ufixed<D_flagwidth,D_flagwidth> &fgt,
sc_ufixed<D_flagwidth,D_flagwidth> &flt,
);
virtual void cycle_end(
const sc_ufixed<D_width,D_width> dx,
const sc_ufixed<D_width,D_width> dy,
const sc_ufixed<6,6> cmd,
const sc_ufixed<6,6> cshiftcnt,
const sc_ufixed<1,1> cshiftleft,
sc_ufixed<D_width,D_width> &dout,
sc_ufixed<D_flagwidth,D_flagwidth> &fgt,
sc_ufixed<D_flagwidth,D_flagwidth> &flt,
);
virtual void next_state(
bool rst
);

best regards,
Andreas Lundgren
Nov 13 '05 #1
4 1617
In article <f7**************************@posting.google.com >, Andreas wrote:
[cut]
public:
virtual void cycle_start(

Sorry, this is not C.
--
Andreas Kähäri
Nov 13 '05 #2
"Andreas" <d9****@efd.lth.se> wrote in message
news:f7**************************@posting.google.c om...
| I have some autogenerated code that doen't compile in my compiler. I
| get the error message:
| parse error before ',' token on line 3
| parse error before ',' token on line 13
|
| I'm using gcc 3.2. Do I need a different compiler? I also include
| systemc 2.0.1
|
| public:
| virtual void cycle_start(
| const sc_ufixed<D_width,D_width> dx,
| const sc_ufixed<D_width,D_width> dy,

Make sure your file is compiled in C++ mode (by changing its
extension, or calling gcc with adequate parameters).

Next, consider a C++ forum, or one that is dedicated to gcc...

Regards,
--
http://ivan.vecerina.com
Nov 13 '05 #3
Andreas wrote:
Hi!

I have some autogenerated code that doen't compile in my compiler. I
get the error message:
parse error before ',' token on line 3
parse error before ',' token on line 13

I'm using gcc 3.2. Do I need a different compiler? I also include
systemc 2.0.1

public:
virtual void cycle_start( [snip]

Yes, use the g++ compiler. Your code is C++ not C. This is
a C newsgroup. Try the newsgroup down the hall at
news:comp.lang.c++.
best regards,
Andreas Lundgren

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Nov 13 '05 #4
Andreas wrote:

Hi!

I have some autogenerated code that doen't compile in my compiler. I
get the error message:
parse error before ',' token on line 3
parse error before ',' token on line 13

I'm using gcc 3.2. Do I need a different compiler? I also include
systemc 2.0.1

public:
virtual void cycle_start(

What you have here is C++. You should first of all start using a C++
compiler (g++ seems like a good choice) and then post questions over on
comp.lang.c++.


Brian Rodenborn
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff Epler | last post by:
Hello. Recently, Generator Comprehensions were mentioned again on python-list. I have written an implementation for the compiler module. To try it out, however, you must be able to rebuild...
13
by: Bryan Parkoff | last post by:
You may notice that switch (...) is much faster than function that can gain a big improved performance because it only use JMP instruction however function is required to use CALL, PUSH, and POP...
10
by: Bjorn | last post by:
I'm using interfaces in C++ by declaring classes with only pure virtual methods. If then someone wants to implement the interface they needs to inherit from the class. If the implementing class...
7
by: Tao Wang | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I saw cuj's conformance roundup, but the result is quite old. I think many people like me want to know newer c++ standard conformance test...
14
by: joshc | last post by:
I'm writing some C to be used in an embedded environment and the code needs to be optimized. I have a question about optimizing compilers in general. I'm using GCC for the workstation and Diab...
16
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...)...
0
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around...
3
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error...
6
by: toton | last post by:
Hi, Anyone have a link to comparative study of different C++ compilers and how much they conform to C++ language standard? Most of the big platforms I know have GCC which well supports C++...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.