Re: [gtk-list] C Compile problems




> [nathan@localhost src]$ gcc -Wall -g helloworld.c -o ./hello_world
> `gtk-config --cflags` \ `gtk-config --libs`
> gcc:  -L/usr/lib: No such file or directory

The offending part of the command is the '\' just before

	`gtk-config --libs`.

The shell prepends a space to the first word output by

	gtk-config --libs.

This stops the compiler from recognising it as an option (since the
first character is not a '-'), so it looks for file of that name.

- Dave

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS dpu s-:+ a C++$ ULS++$ P+++$>++++ L++>+++$ E+>++ W N++ !o K w++$ O !M-
!V(-) PS+ PE- Y+ PGP !t-- 5++ X R tv b+ DI+++ D G e++ h--- r+++ y++++
------END GEEK CODE BLOCK------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]