Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » important note when a strange compilation error occurs
important note when a strange compilation error occurs [message #57296] Sat, 26 June 2021 21:42 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 142
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

Suddenly, through an unnoticed distraction, a strange compilation error occurs.
It happened to me, although it solved with some slowness, because I was evaluating the reason, as that something difficult to visualize in the code suddenly happened (in this case, it involved many lines of code).

the ide show errors like

...'using namespace' is not allowed in classes

...non-friend class member 'Get' cannot have a qualified name


class....{}
   public:
    ....
    ....
    ....
    void getTiposCartao(){; // <----- I accidentally pasted a bracket and didn't notice.
    ....
    ....
 }; 




that's why I think good practices such as writing function and as soon as it ends compiling before writing others function or the next code.

Thanks


 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compile under Mac M1 for intel
Next Topic: Do we have a QR image generator?
Goto Forum:
  


Current Time: Sat Nov 27 01:10:24 CET 2021

Total time taken to generate the page: 0.05213 seconds