Find the answer to your Linux question:
Results 1 to 3 of 3
Attempting to compile a program in Cygwin, and get this error. The program has several included header files, and strings.h and another header file I created seem to not be ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    27

    error: strings.h : no such file or directory??

    Attempting to compile a program in Cygwin, and get this error. The program has several included header files, and strings.h and another header file I created seem to not be found, although stdio.h and others have no problems. I have installed all possible Cygwin packages that came with the installer, do I need something else??

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Well, you have a typo. The file is string.h, not strings.h. The header file that you created yourself needs to be in the same directory as your source code and needs to be included as:
    Code:
    #include "myheader.h"
    If this doesn't fix things, please describe the layout of your project and how your files are including your headers.
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    27
    Wow, dont know how I missed that, but you're right! Thanks! To fix the other error I had to move the header file to the same directory as you said

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...