List Info

Thread: GCC Macros




GCC Macros
country flaguser name
Germany
2007-06-24 16:57:54
----------  Forwarded Message  ----------
From: Roberto Raggi <robertokdevelop.org>

Hi,

A very little useful hack. For instance, you can use it in
KDevelop  
to configure the C++ engine for GCC. I don't know if you can
do the  
same with other compilers.


Ask GCC for the built-in macros

[robertoMacBook parser]$ gcc -xc++ -E -dM - < /dev/null
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 2147483647
...



Ask GCC for the standard include paths

[robertoMacBook parser]$ gcc -xc++ -E -v - < /dev/null
...
#include <...> search starts here:
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/i686-apple-darwin8
/usr/include/c++/4.0.0/backward
/usr/lib/gcc/i686-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.


ciao robe

-------------------------------------------------------

-- 
Amilcar Lucas
Webmaster
The KDevelop project

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )