Opened 10 years ago Closed 9 years ago #1392 closed defect (fixed)ARM cross-compilation issues with g++/Linux
Description (last modified by ksuehring)
The following code has been added to address issue #206 #ifdef __arm__ typedef signed char Char; #else typedef char Char; #endif
It has been reported that defining Char to "signed char" created compilation issues in related to I/O functions in TVideoIOYuv.cpp/.h.
These can be addressed by removing the special case for ARM in typedef.h
There may still exist arithmetic problems with signed vs. unsigned calculations (as reported in #206). Attachments (1)Change History (7)comment:1 Changed 10 years ago by DefaultCC Plugin
comment:2 Changed 10 years ago by dfsouzaChanged 10 years ago by karlsharmancomment:3 Changed 10 years ago by karlsharman
I have attached a patch that replaces the troublesome Char type with
A user of ARM gcc has reported that this resolves the issue.
The original problem was that 'char' (Char) types are signed
This patch (relative to HM-dev r4445) resolves this ambiguity. comment:4 Changed 9 years ago by ksuehring
comment:5 Changed 9 years ago by ksuehring
comment:6 Changed 9 years ago by karlsharman
Fixed in r4590. Note: See
TracTickets for help on using
tickets. | This list contains all users that will be notified about changes made to this ticket. These roles will be notified: Reporter, Owner, Subscriber, Participant
|
It will work with the GCC flag -fsigned-char.