Mailinglist Archive: opensuse (1597 mails)

< Previous Next >
Re: [opensuse] where to place the library glib
  • From: David Haller <dnh@xxxxxxxxxxxx>
  • Date: Fri, 30 Oct 2009 02:33:37 +0100
  • Message-id: <20091030013337.GA23246@xxxxxxxxxxxxxxxxxx>
Hello,

On Thu, 29 Oct 2009, Maura Monville wrote:
mauede@bordighera:~/miRTA-Dir/Parini-Dir/galopps/galopps3.2.4.Parini/miRTA_MEM>
gcc miRTA_MEM-main.c -o miRTA_MEM

In file included from miRTA_MEM-main.c:9:
/usr/local/include/g_arraylist.h:1:18: error: glib.h: No such file or directory

You need to tell gcc where to look for headers -- and only use the
standard form of includes in your code. And also how to link with glib.

====
#include <glib.h>
====

$ gcc $(pkg-config --cflags --libs glib-2.0) miRTA_MEM-main.c -o miRTA_MEM

HTH,
-dnh

--
Every time I hear someone whining about vi or emacs, I give them ed to play
with. Shuts them up PDQ. -- stevo
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References