View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-20-2006, 02:17 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Kdevolop relative path working wrong

I am using KDevelop for my C++ project it is working cool but when i include an external files and link with external librarys full path is workig ok but relative path is not working .
-I/home/MyIncludes this is working ok
-I../../MyIncludes it is not working
please help me ...

Old 11-20-2006, 11:50 PM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
how necessary is it to link using a relative path?

I would recommend redoing your directory structure so that you can just link using "-I./MyIncludes/..."

then again, I'm not a C/C++ programmer (I'm all about LISP, BASIC, and Java), so I'm just shooting in the dark here.

I hope that helps. I mean, that's how I do all of my "includes" for LISP...
(load #p"./include/includefile.lisp")
I place my homemade includes in an "include" folder in the working dir of the project.


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
How to list files in subdirectrories with relative path? Lotharster Linux - Newbie 5 01-28-2006 02:06 PM
relative to absolute path vishalbutte Programming 4 01-14-2006 04:17 PM
TAR Archive file - need relative path cmd0a0 Linux - Software 2 10-19-2005 03:57 PM
how to find a relative path to another directory bahadur Programming 9 04-04-2005 08:52 PM
Relative Path? mikeshn Linux - General 3 05-10-2002 05:09 PM

All times are GMT -5. The time now is 04:55 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