New compiler?

A

Andreas

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
 
I

Ivan Vecerina

| 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,
 
T

Thomas Matthews

Andreas said:
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
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
 
D

Default User

Andreas said:
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
 

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,082
Messages
2,570,589
Members
47,211
Latest member
Shamestone

Latest Threads

Top