what causes [-fpermissive] error in c++ in an example like Customer::Customer () { | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

what causes [-fpermissive] error in c++ in an example like Customer::Customer () {

cannot compile due to that error .please help

23rd Sep 2017, 11:10 AM
Captain Salem
Captain Salem - avatar
2 Answers
+ 4
Show me the complete code, and Ill try to help. Usually, this error is due to something above the statement shown with the error description...
23rd Sep 2017, 4:16 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 3
It sounds like the Customer class has a method that can’t be accessed by the program. If it’s a multi-file program, it may not be linked properly. If it’s a single file, it may be a private method that can’t be accessed.
26th Sep 2017, 8:01 PM
Thomas Kimball