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

Asked by sumansaurabh

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:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Did you install build-essential?

Revision history for this message
sumansaurabh (sumansaurabh44) said :
#2

yeah i installed it. Thank you :)