C++ header file: "no such file or directory"

  • bgraybr
  • Novice
  • Novice
  • bgraybr
  • Posts: 26

Post 3+ Months Ago

I'm trying to compile a simple program, but I keep getting this error in "constants.cpp: "constants.h": no such file or directory. The file obviously exists and I'm absolutely positive I spelled it correctly, I even changed its name several times.

What could cause this? I'm using g++ as a compiler and Slackware Linux.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9089
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

How are you including it in your files? Can you paste some of your code?
  • bgraybr
  • Novice
  • Novice
  • bgraybr
  • Posts: 26

Post 3+ Months Ago

>_< I miss such obvious things sometimes. I had typed #include <"constants.h"> instead of #include "constants.h"

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 60 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.