Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-30-2003, 05:12 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 26

Rep: Reputation: 15
g++ does not find include files

The include files are in directories referred to using backward slashes as this is how they're recognised in Windows. Is there anyway to avoid having to go through every .cpp and every .h file in my project changing backward slashes to forward slashes?
Old 11-30-2003, 05:51 AM   #2
Registered: Nov 2003
Location: Kerala, India
Distribution: Red Hat, Knoppix, Mandrake, FreeBSD
Posts: 231

Rep: Reputation: 30
Can you just clarify more on your difficulty.... or problemm..... plzzzzzz
Old 11-30-2003, 06:12 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 26

Original Poster
Rep: Reputation: 15
I have lots of cpp files with include lines in the format below:

#include "dir1\dir2\dir3\file.h"

but when I try to compile using g++ it says file does not exist. Does this mean I have to change all the include lines so that they use forward slashes. ie

#include "dir1/dir2/dir3/file.h"

or can I somehow get g++ to recognise what is meant by the backward slashes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quanta install can't find X include Ezplan Linux - Software 6 12-03-2005 04:00 PM
Kernel header (include) files - where do i find these walkerx Mandriva 2 04-17-2005 08:19 AM
cannot find mysql include files lsimon4180 Linux - Software 5 03-25-2005 02:41 PM
Error when compiling 2.4.26(can't find the include files) iZvi Slackware 2 05-25-2004 05:27 AM
Where to find/How to change .h include directories for g++ sfcesario Linux - Software 1 01-31-2004 10:12 AM

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration