Connecting Tech Pros Worldwide Help | Site Map

C++ code in SPLASH2 benchmarks

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 14th, 2006, 02: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, 02: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,840 network members.