Compile project with custom lib.a

Duplicate of Using a precompiled library *.a - #2 by maxgerhardt.

You need

build_flags =
   -I credentials
   -I ../CLientServerCommunication/SharedComLogic/include
   -L lib
   -lSharedComLogic

Aka, add the folder where your .a file is to the library search path with -L, then tell the linker to link with your library using -l<library name> where library name is the file name without the lib prefix and without the file extension.

All of this is documented in the build_flags.

1 Like