what is needed to run .cpp file although i have gcc installed?

Asked by sumansaurabh on 2012-08-19

when i compile my .cpp file, i get error message like
suman@suman-laptop:~$ g++ one.c
one.c: In function ‘int main()’:
one.c:22: error: request for member ‘showdata’ in ‘c’, which is of non-class type ‘A [5]’
s

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-defaults Edit question
Assignee:
No assignee Edit question
Solved by:
sumansaurabh
Solved:
2012-08-19
Last query:
2012-08-19
Last reply:
2012-08-19

Did you install build-essential?

sumansaurabh (sumansaurabh44) said : #2

yeah i installed it. Thank you :)