[fpc-pascal] Help needed with interfacing to C-object-files.

Marco van de Voort marcov at stack.nl
Fri Mar 11 14:46:33 CET 2005


> > 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)




More information about the fpc-pascal mailing list