RE: [gtk-list] cannot compile using gtk



On 28-Feb-99 trout2 wrote:

>  i have just installed gtk on my machine, and am trying to do the
> tutorials. i am unable to compile the simple tutorial programs. the
> following program:

[ ..snip.. ]

> i'm afraid i don't know enough about gtk to see whats going on here.
> i read through the first few pages of the tutorial, and it mentions the
> following gcc command: 

It's not GTk+ that's bugging you, it's basic compilation knowledge.

> gcc -Wall -g helloworld.c -o hello_world `gtk-config --cflags` \
> `gtk-config --libs`

try running gtk-config --libs only and see what it returns.

> produces this error:
> 
> gcc:  -L/usr/local/lib: No such file or directory

Does /usr/local/lib exist?

> what is "-L"?
> any suggestions would be appreciated

`-LDIR'
     Add directory DIR to the list of directories to be searched for
     `-l'.

Taken from info gcc

---
Jeroen Ruigrok van der Werven      http://www.freebsdzine.org> 
asmodai(at)wxs.nl        The idea does not replace the work...
Network/Security Specialist      <http://home.wxs.nl/~asmodai>
*BSD: Powered by Knowledge & Know-how <http://www.freebsd.org>



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