> > My question : is the linker not smart enough to find out > > by itself where to look for those missing object files ? > > Not sure if I understand your question, but as Marc already > mentioned, you can control this with the -k-L compiler switch. > > You can also control the way the compiler/linker searches > for various things using directives, eg: > > {$OBJECTPATH path} > {$LIBRARYPATH path} > {$UNITPATH path}
Hardcoding paths in the source is not advised though, same for Delphi style uses xxxx in '../../othername.pas'; like syntax. Better solve it outside the source (makefile/batchfile/lazarus project file) _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal