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
Re: important note when a strange compilation error occurs [message #57299 is a reply to message #57298] Sun, 27 June 2021 20:05 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi Klugier,

I understand your placement.

I don't have experience with c/c++, but considering from beginning to end of the code (total), if not close the bracket and semicolon "};" understand that the compiler will return to the first line of a new function, for example, and will display an error message in the format
(file name);( line); error function definition is not allowed here (this error for my case).

In my case, the error was in the header file "file.h" and the compiler showed the 1st line of another function that was in the file "file.cpp", ie considering large files, the situation was visually difficult to be solved.

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: Wed Apr 24 07:35:33 CEST 2024

Total time taken to generate the page: 0.02226 seconds