sigset_t and gcc

From: Jade Fox (cjchen_at_eden.rutgers.edu)
Date: 11/26/03


Date: 26 Nov 2003 06:58:21 -0800

Can anybody tell me what is wrong with the following code?
It compiles ok with 'gcc file.c',
but not 'gcc -ansi file.c' or 'gcc -std=c99 file.c'.
It complains that 'sigset_t' is undeclared.
What options am I missing? Thanks

#include <signal.h>

int main()
{
    sigset_t set;
}



Relevant Pages

  • Re: problem with rand()
    ... > Using gcc, this compiles, runs, and outputs as expected, but on ... > using namespace std; ... > int main ...
    (comp.lang.cpp)
  • Re: self-confidence of compiler
    ... it still complains at: ... int main ... gcc, aCC, and Digital Mars all complain in some fashion about ... uninitialized variables if you set the warning level high enough. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: sigset_t and gcc
    ... > It compiles ok with 'gcc file.c', ... > It complains that 'sigset_t' is undeclared. ... > What options am I missing? ... > int main ...
    (comp.lang.c)
  • Re: nextPow2 in x86
    ... int nextPow2 ... ...which compiles with gcc to... ... Is it possible to do this operation faster somehow with handwritten ...
    (comp.lang.asm.x86)
  • Re: possibility to forbid use of "this"?
    ... With gcc 2.95 it compiles: ... virtual void f; ... int main ...
    (comp.lang.cpp)