Advertisement

Anjuta quation?

Started by September 06, 2003 01:07 PM
4 comments, last by stefu 21 years, 1 month ago
Hi! I tried crewating new project in Anjuta and add some source files. The problem is that I can only have source files in ./src directory and headers in ./iclude. But I''d like to have subfdirectories in src. How can I do this? Is it possibel in Anjuta?
I''m using v1.1.97 and can do this no problem.

Adding a symlink will trash the file (don''t do that).
(I use scripts to switch between a project-local copy of the file and symlinks).
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
So how you add a new source directry to anjuta project? It always copies source files to the same place if I try to add files that are in different directory.
You do know that compilers don''t automatically scan subdirectories for filename matches right?

That being said in your source if you were to want to include someone in a subsirectory you would have to put that directory in your include statement.

#include "subdirectory/myincludefile.h"

should work if that subdirectory is in your include path.
"The paths of glory lead but to the grave." - Thomas GrayMy Stupid BlogMy Online Photo Gallery
I''m not positive but I think the newer versions will let you have source subdirectories, but they have to already be in that sub directory when you add them to the project. If they''re below the project level (folder-wise, i mean), not outside, it shouldn''t import it and instead leave it where it is.

Actually, I think I''ve done this. I''m not sure though... I''m not in Linux at the moment or else I''d check.
I like the DARK layout!

griffenjam.. no no, that was not the problem.

quote: Original post by BradDaBug
I''m not positive but I think the newer versions will let you have source subdirectories, but they have to already be in that sub directory when you add them to the project. If they''re below the project level (folder-wise, i mean), not outside, it shouldn''t import it and instead leave it where it is.

Actually, I think I''ve done this. I''m not sure though... I''m not in Linux at the moment or else I''d check.


Great, finally!! Why didn''t I think of this. I can add subdirectories to the original src directory and then it accepts files from there!

Thanks!

This topic is closed to new replies.

Advertisement