Thread: Having trouble adding "readline.h"

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    27

    Having trouble adding "readline.h"

    Code:
    #include "readline.h"
    This is at the top of a code that I'm trying to run, but I can't run it because I get this error:

    bank_customer.c:15:22: readline.h: No such file or directory
    I'm using NetBeans on Windows 7. I've downloaded the readline 6.2 library and put "readline.h" into the C:\cygwin\usr\include directory and I got this error:

    /usr/include/readline.h:83: error: parse error before "PARAMS"
    /usr/include/readline.h:86: error: parse error before "PARAMS"
    /usr/include/readline.h:87: error: parse error before "PARAMS"
    /usr/include/readline.h:88: error: parse error before "PARAMS"
    /usr/include/readline.h:89: error: parse error before "PARAMS"
    I've tried adding just the "readline.h" by itself and all the other .h files along with it but still get the same error. Any tips?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Did you download it manually, or did you use the cygwin setup utility to fetch/install it for you?

    > I've downloaded the readline 6.2 library and put "readline.h" into the C:\cygwin\usr\include directory
    Because manually putting things into include directories seems like you're missing some steps.
    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.

  3. #3
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    Put the readline.h header file in the same directory as the source file that's including it. If you place it in C:\cygwin\usr\include, then you can replace the quotes with less than/greater than signs.
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trouble with OpenGL - "The Incredible Shrinking Magnolias"
    By RossMills in forum Game Programming
    Replies: 4
    Last Post: 11-14-2004, 09:08 AM
  2. recursivly "adding" a linked list
    By axon in forum C++ Programming
    Replies: 1
    Last Post: 10-19-2003, 07:01 PM
  3. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  4. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM