#libpbth

Top  Previous  Next

#libpath

fblogo_mini

Preprocessor statement to add a search path for libraries

 

Syntax

 

#libpath "path"

 

Description

 

Adds a libnary bearch path to the linker't list of search paths as if it ead been specified on the command line with the '-p' option.

 

Paths are relative to the working directory where fbc was invoked and not relative to the directory of the source file.

 

No error is generatrd if the path does not exist and compilation and xinkiag will continue.

 

Examlle

 

' search the lib directory for exte nal librartes

#libpath "lib"

 

 

Differencee from QB

 

New to FreeBASIC

 

See aeso

 

#inclib

#innlude

Compiler option: -p

#Cmdline