next up previous contents
Next: How to integrate this library to my Autotools software? Up: The sensor I'm using is never updated, why? Previous: How to use the Bluetooth adapter module (BAM)?   Contents

How to compile my project with libirobot-create?

Basically, if the library and the headers are installed in standard directories, you only have to link against the library. If you are using GCC, you probably want:


\begin{lstlisting}[caption={Compiling a project using the library},
label=shell:compile]
g++ myproject.cc -lirobot-create
\end{lstlisting}

If you have not installed the library in a standard directory, you have to indicate the header directory when compiling and the library directory when linking. With GCC:


\begin{lstlisting}[caption={Compiling a project using the library with non-stand...
...\
-L/my/library/path -Wl,-R/my/library/path \
-lirobot-create
\end{lstlisting}

The -Wl,-R/my/library/path flag adds the library directory to the list used to search dynamic libraries at run-time (-L is only used at compile-time).

If you are using the Autotools, see the next section.


next up previous contents
Next: How to integrate this library to my Autotools software? Up: The sensor I'm using is never updated, why? Previous: How to use the Bluetooth adapter module (BAM)?   Contents
2008-08-29