cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
big endian g++ compile option
big endian g++ compile option
Mar 23, 2011 at 7:25am UTC
tikot9403
(1)
Does anyone know how to compile big-endian in the little endian gnu environment. I am getting errors when I compile my code using the "-mbig" or "-mb" options.
$ g++ -o main.o -mbig main.cpp hello_world.cpp
cc1plus: error: invalid option `big'
cc1plus: error: invalid option `big'
cc1plus: error: invalid option `big'
My environment is cygwin with gnu g++.
Thanks
Mar 23, 2011 at 9:04am UTC
Bazzy
(6281)
try -mbig-endian but it's not available for all platforms
Topic archived. No new replies allowed.