[Scratchbox-devel] sbox compiler's command-line options
Timo Savola
tsavola at movial.fi
Thu Oct 5 16:17:39 EEST 2006
On Thu, 2006-10-05 at 16:12 +0300, Andrey Khurri wrote:
> That's right, there is a '-c' option. Also `pkg-config --cflags --libs
> gthread-2.0` and `pkg-config --cflags --libs gobject-2.0` outputs are
> as follows respectively:
>
> -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
> -lgthread-2.0 -lglib-2.0
>
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lgobject-2.0
> -lglib-2.0
>
> And it seems to me that the latter is exactly what compiler is not
> able to understand somehow.
The -c option tells gcc to stop after compilation (= it does not link
anything). Libraries are only needed in the linking stage. The build
command is invalid.
timo
More information about the Scratchbox-devel
mailing list