function definition is not allowed here - how to debug?
-
This is self inflicted error...
Easy to fix when SINGLE line of code is placed in wrong place.. no issue there.
Any suggestion how to find the offering line when it is NOT a single line causing the error ?
As usual - the error code is causing multitude of errors.
/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11/A_BT_LIBRARY/terminal_Bluetooth/mainwindow_Bluetooth_copy.cpp:607: error: function definition is not allowed here
-
This is self inflicted error...
Easy to fix when SINGLE line of code is placed in wrong place.. no issue there.
Any suggestion how to find the offering line when it is NOT a single line causing the error ?
As usual - the error code is causing multitude of errors.
/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11/A_BT_LIBRARY/terminal_Bluetooth/mainwindow_Bluetooth_copy.cpp:607: error: function definition is not allowed here
@AnneRanch said in function definition is not allowed here - how to debug?:
Any suggestion how to find the offering line when it is NOT a single line causing the error ?
mainwindow_Bluetooth_copy.cpp:607
As you can see the compiler tells you where the error is.
-
@AnneRanch said in function definition is not allowed here - how to debug?:
Any suggestion how to find the offering line when it is NOT a single line causing the error ?
mainwindow_Bluetooth_copy.cpp:607
As you can see the compiler tells you where the error is.
@Christian-Ehrlicher Sorry , the error was "missing terminating #endif " . The compiler actually asked to remove more of them...
Found by following "greyed out area" of known good / working code until I found the opening #ifdef...PS
If you (carefully) read the referenced post you may find I did follow up on silly reply " ...missing } ".
Contrary to somebody else opinion , it is my choice to reply or not...