Build error WITH_TRACE_OUTPUT #6

Closed
opened 2 months ago by Ray-V · 3 comments
Ray-V commented 2 months 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 2 weeks 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 2 weeks ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.