Connecting Tech Pros Worldwide Help | Site Map

C++ code in SPLASH2 benchmarks

  #1  
Old March 14th, 2006, 03:05 PM
Vinod
Guest
 
Posts: n/a
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

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
Closed Thread