I have a make file which compiles my C++ code on RHEL5. It contains the compilation flags as listed below. Where can I get the description of following g++ compilation flags:

-D_UNIX
-D_REENTRANT
-DUNICODE
-D_UNICODE
-D__LITTLE_ENDIAN__
-D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE
-D_LARGE_FILES
-DLINUX
-D__x86__
-D__linux__
-D____
-D__OSVERSION__=2

Recommended Answers

All 2 Replies

google for them? UNICODE means the program is being compiled for UNICODE strings, such as using wchar_t instead of char. _x86_ means the processor is one of the 80x88 family of processors (Intel or compatible). _linux should be fairly obvious (os name).

As for the other flags, they will depend on the program being compiled or the library(s) being used.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.