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

  • bgraybr
  • Novice
  • Novice
  • No Avatar
  • Joined: Jan 11, 2009
  • Posts: 26
  • Status: Offline

Post April 21st, 2010, 8:56 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 21st, 2010, 8:56 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post April 21st, 2010, 5:03 pm

How are you including it in your files? Can you paste some of your code?
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • bgraybr
  • Novice
  • Novice
  • No Avatar
  • Joined: Jan 11, 2009
  • Posts: 26
  • Status: Offline

Post April 22nd, 2010, 6:58 pm

>_< 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 269 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.