Subj : Re: BC++ 5.01 (Tlink) - Undefined symbols in module To : borland.public.cpp.borlandcpp From : "Erwan" Date : Wed Apr 07 2004 10:13 am Thank you Jogy ! It works ! placing the code for all the functions called by main in a source pool in the first indentation level of the target. Although it's not what I ideally intended (placing the source pool in a sublevel of the main.c node would have been perfect, unfortunately it results in the same undefined errors), it 's still one better than before in terms of project structure. Thanks again. Erwan "Jogy" a écrit dans le message de news:4072c45a$1@newsgroups.borland.com... > Hello, > > I think that in this case the IDE thinks that main.c depends on func.c, > but that applies only when compiling main.c, and func.c is ignored. > > When linking, the linker looks only for the nodes directly under the > linked node, in this case only main.c > > > If you want to make organize the .cpps in a project, > the way to do this is to use SourcePools. > > Add a new "SourcePool" target node, and don't forget to turn off it's > option "Exclude from parent" from the Build attributes. > > After that you can move the SourcePool where you want, and to put under > it the nodes you want, like this: > > . target.exe > | > . - main [.c] > | > . - funcs [SourcePool] > | > . - funcs [.c] > > .