cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
#include <> question
#include <> question
Apr 9, 2011 at 9:23pm UTC
kraigballa
(150)
I am trying to include a header file that is in a different directory. The header file I am trying to include is back one folder. For instance, I am currently in "sample/proj/im.h" and I want to include "sample/mainframe.h" into im.h. I have tried
#include <"../mainframe.h">
but it cannot find the file. Any ideas?
Apr 9, 2011 at 9:33pm UTC
ultifinitus
(1446)
get rid of the <> around the ""
Apr 9, 2011 at 9:43pm UTC
kraigballa
(150)
Yeah I don't know what I was doing. I had copied and pasted then I added the double quotes without taking out the <>. Thanks for the help.
Apr 9, 2011 at 9:49pm UTC
ultifinitus
(1446)
^^ no worries =]
Topic archived. No new replies allowed.