Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 14th, 2006, 03:05 PM
Vinod
Guest
 
Posts: n/a
Default C++ code in SPLASH2 benchmarks

Hello.

I am trying to include some C++ code in SPLASH2 benchmark applications.
However, when I try to compile them with g++, I get many errors because
the original C code was written in K&R C style. So, it has function
declarations in the K&R style, which g++ doesnt allow and complains. Is
there any workaround to avoid these errors, yet include C++ code in the
applications.

Thanks!
- Vinod.

  #2  
Old March 14th, 2006, 03:25 PM
Victor Bazarov
Guest
 
Posts: n/a
Default Re: C++ code in SPLASH2 benchmarks

Vinod wrote:[color=blue]
> I am trying to include some C++ code in SPLASH2 benchmark applications.
> However, when I try to compile them with g++, I get many errors because
> the original C code was written in K&R C style. So, it has function
> declarations in the K&R style, which g++ doesnt allow and complains. Is
> there any workaround to avoid these errors, yet include C++ code in the
> applications.[/color]

No, you need to rewrite it in Standard language. Did you actually expect
any other answer in 'comp.lang.c++'? Why? Try asking in 'gnu.g++.help'.

V
--
Please remove capital As from my address when replying by mail
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles