PDA

View Full Version : Why does Dev-C++ not look for my include



adr
02-13-2006, 06:26 AM
HI I am using Dev-C++ and I was trying to work on something new. I am trying to use SDK 5.1 for TTS but when I "#include <sapi.h>" it says its not there. Will I look for the file include and found it in SDK... but I dont get why the compiler says its not there? Is there something I miss on when I was trying to use it?

SMurf
02-13-2006, 06:38 AM
Try replacing the < and > with "s and specify the full path to your include, i.e:-


#include "C:\stuff\SDK\sapi.h"

And we'll go from there.

dwks
02-13-2006, 06:12 PM
Or you can move the relavent header files to your compiler's include directory. Or best of all, add the SDK's include directory to your compiler's includes search path. For GCC:

gcc -Ic:\somewhere\include\ hippo.c -o hippo.exe
In Dev-C++ it's in the compiler options somewhere ("Extra include directories").

rainmanddw
02-19-2006, 01:15 AM
You also have to have all of your files in a project if is a header file you made