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  |
BetoValle
Messages: 204 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!
|
|
|
Goto Forum:
Current Time: Wed May 14 03:09:51 CEST 2025
Total time taken to generate the page: 0.03546 seconds
|