Thread: Compiler failing to find includes

  1. #1
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    791

    Compiler failing to find includes

    Tried including the directory it's in (/usr/include) yet still not found, any ideas?
    Code:
    clang -shared -fPIC -fpic -I /usr/include -I Cpw/library -I Cpw/library/src/include -Wall -DCPW_OPENGL_H=<glad/glad.h> -DCPW_API -DCPW_INTERN -o Cpw/library/src/cpw_keymouse.c.o Cpw/library/src/cpw_keymouse.c
    /bin/sh: glad/glad.h: No such file or directory
    make: *** [makefile:121: Cpw/library/src/cpw_keymouse.c.o] Error 1
    Compilation failed.

  2. #2
    Registered User
    Join Date
    May 2012
    Location
    Arizona, USA
    Posts
    678
    Code:
    /bin/sh: glad/glad.h: No such file or directory
    That's the shell, not the compiler, complaining that it can't find the file glad/glad.h. Do you have the text "glad/glad.h" (or as a result of variable expansion) on a line by itself in your makefile?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    3,729
    Quote Originally Posted by awsdert View Post
    Tried including the directory it's in (/usr/include) yet still not found, any ideas?
    Code:
    clang -shared -fPIC -fpic -I /usr/include -I Cpw/library -I Cpw/library/src/include -Wall -DCPW_OPENGL_H=<glad/glad.h> -DCPW_API -DCPW_INTERN -o Cpw/library/src/cpw_keymouse.c.o Cpw/library/src/cpw_keymouse.c
    /bin/sh: glad/glad.h: No such file or directory
    make: *** [makefile:121: Cpw/library/src/cpw_keymouse.c.o] Error 1
    Compilation failed.
    Please name a OS where this is wise to use?

    Code:
    -DCPW_OPENGL_H=<glad/glad.h>
    You do know that "<" and ">" has special meanings to OS shells, right?

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #4
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    791
    Never mind, popped the header in quotes and it shut up about that, on the other hand I have to implement some bits of the library manually it seems, ah well at least I don't have to implement the whole thing

    Edit: only just seen your posts guys, thanks anyways, I had completely forgotten about the operators in sh/bash/cmd.exe etc
    Last edited by awsdert; 1 Week Ago at 03:45 PM. Reason: missed a word

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 04-11-2011, 07:28 AM
  2. where can i find a compiler
    By AquaFight in forum C Programming
    Replies: 7
    Last Post: 01-13-2007, 05:33 PM
  3. Where can i find a good compiler to D/L?
    By ray in forum C++ Programming
    Replies: 1
    Last Post: 11-27-2002, 12:11 PM
  4. my MS vC++ compiler does not have DIR.H, can't find on the web...HELP
    By andre in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-03-2002, 01:24 PM
  5. where can i find a linux C++ compiler?
    By Unregistered in forum Linux Programming
    Replies: 4
    Last Post: 11-26-2001, 10:40 AM

Tags for this Thread