Compiler Error

why this code dont compile? what should i do with this codes to compile?sorry for my bad english.

1
2
3
  #include "includes.h"
  #include "functions.h"
  #include "externs.h" 
What's the error message?
"$g++ main.cpp -o demo -lm -pthread -lgmpxx -lgmp -lreadline 2>&1

main.cpp:1:22: fatal error: includes.h: No such file or directory
#include "includes.h"
The compiler can't find the includes.h file. Have you created it? Is it in the same directory as main.cpp?
i dont know how to create it..what should i do?
if it doesn't exist and you don't need it then why even bother trying to include it?
i need it! that's the point! and it give me that error :| i ask here what should i do to the compiler to compile it :)
Are you using an IDE or just the raw command line? You should set them up properly with your compiler. What's your compiler btw?

---edited---
If you were to include those files in your program, you should keep in mind that most compiler only reads(by default) them in the same directory as your main.cpp
Last edited on
im using Dev c++
hmm.. I'm not too fond in dev-c++, but I found this http://stackoverflow.com/questions/257795/header-files-in-dev-c maybe you can start from there. :)
Topic archived. No new replies allowed.