Herramientas de usuario

Herramientas del sitio


wiki2:cpp:notes

¡Esta es una revisión vieja del documento!


C++ Notes

Notes about the language

  • C++11 is the ISO C++ standard ratified in 2011. The previous standard is often referred to as C++98 or C++03; the differences between C++98 and C++03 are so few and so technical that they ought not concern users. C++14 is the informal name for a recent revision of the C++ standard. It is intended to be a small extension over C++11, featuring mainly bug fixes and small improvements.

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.1438246996.txt.gz · Última modificación: 2020/05/09 09:25 (editor externo)