12-28-2009
2 Questions:
- What do you mean by "flagged"? Do you get an error or warning? If so, could you post the message?
- Is this code part of the configure script itself, or part of the package source?
---------- Post updated at 07:54 ---------- Previous update was at 07:50 ----------
Quote from the
GCC documentation
Quote:
__GNUC__
__GNUC_MINOR__
__GNUC_PATCHLEVEL__
These macros are defined by all GNU compilers that use the C preprocessor: C, C++, Objective-C and Fortran. Their values are the major version, minor version, and patch level of the compiler, as integer constants. For example, GCC 3.2.1 will define __GNUC__ to 3, __GNUC_MINOR__ to 2, and __GNUC_PATCHLEVEL__ to 1. These macros are also defined if you invoke the preprocessor directly.
So your example seems to be a cheap trick to check the compiler version. The reason might be that there are some problems if it's compiled with GCC version 3, and this code disables/enables some compiler features or code parts that caused that problem.
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I got some job running on Sun Unix system, which sends the email to outlook client on windows after completion.
Few of the emails are coming with SUSPECT: prefixes.
I am using unix command mailx to send the message. Messages are simple text
Any idea on this
Thanks
Ashok (1 Reply)
Discussion started by: akrathi
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
Do we have any freeware which helps in alignment of code wrt spaces, sections etc?
Thanks (6 Replies)
Discussion started by: eagercyber
6 Replies
3. Shell Programming and Scripting
I bet this is really simple but I can only find silly long solutions.
Im trying to read the second word of each line in a file and pipe it out, in Win32 it looks something like:
for /F "tokens=2" %%b in (file.txt) do etc..
Sorry for the probably dumbass question! (1 Reply)
Discussion started by: joe19oo.c
1 Replies
4. Programming
Dear friend,
Here im saathis, currently im doing my final year project in VB6. My project is speech door access system. Im using microsoft access 2007 as database platform which user detail and set password. User have to register first then they have to speech the password which fix in... (2 Replies)
Discussion started by: saathis
2 Replies
5. UNIX for Advanced & Expert Users
Hi, all:
The physical network interface card should drop the packets if it doesn't match the MAC address of the NIC. In my PC, however, the packets which shoud be dropped trigger the interrupt function of my own driver and are recieved as skb to be transfered to the upper layer!
Why? How... (1 Reply)
Discussion started by: liklstar
1 Replies
6. AIX
Hi
I need a list of code analysis tools for C programs, that can work on AIX environment such as :
dynamic or static code analysis
Code Complexity Measures
Test Coverage Analyzer
Unit tests
profiling tools
Source code formatter
I've found several tools but not compatible with AIX... (0 Replies)
Discussion started by: SteAlma
0 Replies
LEARN ABOUT DEBIAN
premake
premake(1) Development premake(1)
Name
premake - a build script generator
Copyright
Copyright (C) 2002-2008 Jason Perkins and the Premake Project Lua 5.1 Copyright (C) 1994-2008 Lua.org, PUC-Rio
Usage
--file name Process the specified premake script file
--clean Remove all binaries and build scripts
--verbose Generate verbose makefiles (where applicable)
--cc name Choose a C/C++ compiler, if supported by target; one of:
gcc GNU gcc compiler
dmc Digital Mars C/C+ compiler (experimental)
--dotnet name Choose a .NET compiler set, if supported by target; one of:
ms Microsoft (csc)
mono Mono (mcs)
mono2 Mono .NET 2.0 (gmcs)
pnet Portable.NET (cscc)
--os name Generate files for different operating system; one of:
bsd OpenBSD, NetBSD, or FreeBSD
linux Linux
macosx MacOS X
windows Microsoft Windows
--target name Generate input files for the specified toolset; one of:
cb-gcc Code::Blocks Studio with GCC
cb-ow Code::Blocks Studio with Open Watcom C/C++
cl-gcc CodeLite with GCC
gnu GNU Makefile for POSIX, MinGW, and Cygwin
monodev MonoDevelop
sharpdev ICSharpCode SharpDevelop
vs6 Microsoft Visual Studio 6
vs2002 Microsoft Visual Studio 2002
vs2003 Microsoft Visual Studio 2003
vs2005 Microsoft Visual Studio 2005 (includes Express editions)
vs2008 Microsoft Visual Studio 2008 (experimental)
--help Display this information
--version Display version information
Jason Perkins and the Premake Project 3.7 premake(1)