Build error WITH_TRACE_OUTPUT #6

Closed
opened 4 years ago by Ray-V · 3 comments
Ray-V commented 4 years ago
Collaborator

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") ^ ```
Owner

Confirmed, I can reproduce it here.

Confirmed, I can reproduce it here.
MicheleC added this to the R14.0.11 release milestone 4 years ago
Owner

Please test solution proposed in PR #7.

Please test solution proposed in PR #7.
Owner

Solved by PR #7.

Solved by PR #7.
MicheleC closed this issue 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TDE/kdbg#6
Loading…
There is no content yet.