relative paths with autotools

This is a discussion on relative paths with autotools within the Tech Board forums, part of the Community Boards category; Right now in my autotools project I'm including some files with alot of "../"'s in their names. Is there anyway ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    57

    relative paths with autotools

    Right now in my autotools project I'm including some files with alot of "../"'s in their names. Is there anyway where I can force it to start looking in the root of my project so i can just do "foo/bar/test.h"

    I think id clean things up a bit.

    Thanks

  2. #2
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    If you are using GCC, you can do a -I <<-- this is an uppercase i(eye) and use the include path. I think this makes all of your #includes be with <> instead of "" after you do this. -I sets/expands the standard include path.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. exec with system(..), how to use relative paths?
    By sept in forum C++ Programming
    Replies: 2
    Last Post: 08-24-2008, 02:22 PM
  2. relative paths with XPath in libxml2
    By sparcz in forum C Programming
    Replies: 3
    Last Post: 10-12-2006, 03:49 AM
  3. boost::filesystem - relative paths
    By azteched in forum C++ Programming
    Replies: 2
    Last Post: 03-05-2005, 06:24 AM
  4. using relative file paths..?
    By anomaly in forum C++ Programming
    Replies: 2
    Last Post: 11-25-2003, 03:36 PM
  5. Newbie Question: File Input and Relative Paths
    By Ashes999 in forum C++ Programming
    Replies: 11
    Last Post: 05-23-2003, 05:21 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21