Building with cmake option -DWITH_TRACE_OUTPUT=ON produces this error:
gcc version 10.2.0:
kdbg/mydebug.h:22:33: error: invalid cast from type ‘const TQString’ to type ‘const char*’
22 | # define TRACE(x) (kdDebug() << (const char*)(x) << "\n")
| ^~~~~~~~~~~~~~~~
gcc version 8.2.0:
kdbg/mydebug.h:22:48: error: invalid cast from type ‘const TQString’ to type ‘const char*’
# define TRACE(x) (kdDebug() << (const char*)(x) << "\n")
^
Building with cmake option -DWITH_TRACE_OUTPUT=ON produces this error:
gcc version 10.2.0:
```
kdbg/mydebug.h:22:33: error: invalid cast from type ‘const TQString’ to type ‘const char*’
22 | # define TRACE(x) (kdDebug() << (const char*)(x) << "\n")
| ^~~~~~~~~~~~~~~~
```
gcc version 8.2.0:
```
kdbg/mydebug.h:22:48: error: invalid cast from type ‘const TQString’ to type ‘const char*’
# define TRACE(x) (kdDebug() << (const char*)(x) << "\n")
^
```
Building with cmake option -DWITH_TRACE_OUTPUT=ON produces this error:
gcc version 10.2.0:
gcc version 8.2.0:
Confirmed, I can reproduce it here.
Please test solution proposed in PR #7.
Solved by PR #7.