Q: GCC w/Studio- Include file directories

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm confused about how GCC with the Studio IDE handles include file directories. The IDE provides a means to input via a window form, a list of include file directories. If I do NOT use that, and use "../" type path-relative notations in the .c files, I get file not found errors. It's as if the search is relative to some non-obvious directory, maybe the target directory for the elf.

If I DO list some/all of the directories using the IDE window, things are a mess, unless I put full absolute path names starting with the drive letter. And then the IDE automatically edits this list, later.

Confused.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Remember that the build happens in a sub-dir from the project directory usually called ./default/ so any "../" are probably going to be relative to that and not the project dir itself

But do yourself a favour, use Mfile and tick the "use external makefile" button.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Remember that the build happens in a sub-dir from the project directory usually called ./default/ so any "../" are probably going to be relative to that and not the project dir itself

But do yourself a favour, use Mfile and tick the "use external makefile" button.

"so any "../" are probably going to be relative to that"

that's what I'm having trouble with. Not documented and experimentation left me confused.

I don't want to use mfile, blah, blah. The IDE is supposed to hide all that crap. I did makefiles in SUN OS for years and I had hoped to graduate from all that diversion.