Herramientas de usuario

Herramientas del sitio


wiki2:cpp:notes

¡Esta es una revisión vieja del documento!


Tabla de Contenidos

C++ Notes

Libraries

Use

Lets consider your /usr/local/lib/libYARP_OS.a. What you can do is, have -L/usr/local/lib/ in your makefile as one of the variables. And then you can have -lYARP_SO appended to the LDLIBS.

-L is for path to the lib and -l is the lib name here libYARP_OS.a will be passed as -lYARP_OS. On command line you would do something like: gcc -o main main.c -L/usr/local/lib/ -lYARP_SO. This should give you an idea.

wiki2/cpp/notes.1438182030.txt.gz · Última modificación: 2020/05/09 09:25 (editor externo)