Results 1 to 2 of 2
Hey, I am new here, I have some problems with what indicated in the title, my test code as follows:
#include<iostream.h>
void sum(int,int)_attribute_((noreturn));
void sum(int a, int b)
{
int ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-07-2012 #1Just Joined!
- Join Date
- Jun 2012
- Posts
- 1
gcc _attribute_ under suse 64bit
Hey, I am new here, I have some problems with what indicated in the title, my test code as follows:
#include<iostream.h>
void sum(int,int)_attribute_((noreturn));
void sum(int a, int b)
{
int c = 0;
c = a + b;
printf("some sentence",c);
}
int main( void )
{
int a = 5;
int b = 10;
sum(a,b);
return 0;
}
but it seems the system cannot identify the key words _attribute_
in order to use it , what should I include or any change with my codes
-Note: it is just a test codes.
Thanks in advance
- 06-09-2012 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,141
What are you trying to accomplish? This is not, AFAIK, a valid C-language construct. Just remove the line
Code:void sum(int,int)_attribute_((noreturn));
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
