Opened 11 years ago Last modified 10 years ago #1392 closed defectARM cross-compilation issues with g++/Linux — at Version 5
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). Change History (6)comment:1 Changed 11 years ago by DefaultCC Plugin
comment:2 Changed 11 years ago by dfsouzaChanged 11 years ago by karlsharmancomment:3 Changed 11 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 10 years ago by ksuehring
comment:5 Changed 10 years ago by ksuehring
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.