limits.h Not Found

This is a discussion on limits.h Not Found within the C Programming forums, part of the General Programming Boards category; Hey, I've been trying to compile a .c file but I got this error message. PHP Code: i686 - pc ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    istanbul
    Posts
    3

    limits.h Not Found

    Hey, I've been trying to compile a .c file but I got this error message.

    PHP Code:
    i686-pc-linux-gnu-gcc -fno-strict-aliasing -mtune=atom -march=i686 -O2 -pipe -fomit-frame-pointer -fstack-protector -D_FORTIFY_SOURCE=-ggdb3 -funwind-tables -fasynchronous-unwind-tables -DNDEBUG -mtune=atom -march=i686 -O2 -pipe -fomit-frame-pointer -fstack-protector -D_FORTIFY_SOURCE=-ggdb3 -funwind-tables -fasynchronous-unwind-tables -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c yali/_sysutils.-o build/temp.linux-i686-2.7/yali/_sysutils.-Wall
    In file included from 
    /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/syslimits.h:7:0,
                     
    from /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/limits.h:34,
                     
    from /usr/include/python2.7/Python.h:19,
                     
    from yali/_sysutils.c:10:
    /
    usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/limits.h:169:61fatal errorlimits.hNo such file or directory
    compilation terminated
    .
    errorcommand 'i686-pc-linux-gnu-gcc' failed with exit status 1 
    It says that limits.h couldn't be found but there is a limits.h in include folder. So I cannot understand why I get this error.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,420
    Strange - I though /usr/lib is where the libraries are found (.a, .so etc).

    Header files are usually in /usr/include
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  3. Puzzled.
    By silhoutte75 in forum C Programming
    Replies: 13
    Last Post: 01-21-2008, 04:17 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21