Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

gcc compiler error

–1 vote
asked Aug 27, 2020 by Macintosh (130 points)
I was learning how to program now, and I dont really knows so much thing, but in my linux the gcc compiler is not working, when I try to use, they just send show me a error like this (my file name is hello) hello.c:5:1 error expected '=', ',' ';' 'asm' or '__atribute__' before '{' token

If someone knows what i can do to solve this error I gona be so happy

1 Answer

0 votes
answered Sep 1, 2020 by Peter Minarik (63,320 points)
edited Sep 2, 2020 by Peter Minarik

Please, read the documentation.

Nevertheless, your problem may be as simple as a typo as __atribute__ is indeed an unknown key word. Correctly spelled it has two 't':

__attribute__

Also, in general, it's a good idea to share your code to make it clear what issue you are facing. ;)

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...