Sponsored Content
Top Forums Programming gcc does not include certain .h-files Post 302218901 by grahamb on Sunday 27th of July 2008 01:17:03 PM
Old 07-27-2008
gcc does not include certain .h-files

Hi there!

gcc seems not to include available files, see below:

What should I do?

Look forward to your reply/replies!
Thanks
Grahamb

In the source directory I enter:
Code:
#gcc -Wall -I/usr/include ./gtkdaq.c > ./out.log 2>&1

Response:
Code:
In file included from ./gtkdaq.c:3:
/usr/include/gtk/gtk.h:31:21: error: gdk/gdk.h: No such file or directory
In file included from /usr/include/gtk/gtkaccelgroup.h:32,
                 from /usr/include/gtk/gtkwindow.h:32,
                 from /usr/include/gtk/gtkdialog.h:32,
                 from /usr/include/gtk/gtkaboutdialog.h:28,
                 from /usr/include/gtk/gtk.h:32,
                 from ./gtkdaq.c:3:
/usr/include/gtk/gtkenums.h:30:25: error: glib-object.h: No such file or directory
etc . . .

But, with ls -la, they are clearly available and readable:
Code:
-rw-r--r-- 1 root root 6377 Sep 30  2006 /usr/include/gtk/gtk.h
-rw-r--r-- 1 root root 11262 Sep 30  2006 /usr/include/gtk/gtkenums.h
-rw-r--r-- 1 root root 6576 Sep 30  2006 /usr/include/gtk/gtkaccelgroup.h
etc . . .

 

10 More Discussions You Might Find Interesting

1. Programming

Include files

Hi, I am new to the unix networking. I have written one client and server for UDP sockets.. I got the following errors while conpilation I have include all include files. Could some one help ...is there any other file to be included.....? will the include files change on different unix... (3 Replies)
Discussion started by: reddyb
3 Replies

2. Shell Programming and Scripting

how to include external files in tcsh

Hello Simple question about tcsh , i like to make external file that some tcsh script will read from him var=="some value" how can i make the include in tcsh files? Thanks (0 Replies)
Discussion started by: umen
0 Replies

3. Shell Programming and Scripting

include all files under a directory

I want to include all the subnet files under /etc/dhcpd/ to /etc/dhcpd.conf so here is my content of dhcpd.conf ... include "/etc/dhcpd/*"; however, the check-syntax reports syntax error, as they do not recognize the wildcard *, and display that " file /etc/dhcpd/* could not be found. ... (4 Replies)
Discussion started by: fredao
4 Replies

4. Shell Programming and Scripting

make file (include files path)

Hi All, In make file i want to include header files from my local directory and if it did not find in local directory i want to include from network directory. can any help me how i can do this?. here is the code INCLUDE=${include}/ this is point to network dir how i can add option that it... (1 Reply)
Discussion started by: goraya430
1 Replies

5. Solaris

include files

Our admin has upgraded our OS solaris system to 5.11 but no more I can compile any trivial or non-trivial code. I'm trying to compile a trivial c++ program(a Helloworld program) but It gives error indicating that include files do not exist (in this trivial case <stdio.h>), it starts compiling but... (1 Reply)
Discussion started by: Newsha
1 Replies

6. UNIX for Dummies Questions & Answers

linux include files

what is the relationship between /usr/include/sys/*.h and /usr/include/unistd.h ? Fuctions in unistd.h are syscalls. Do the fuctions in sys/*.h call syscalls? (7 Replies)
Discussion started by: vistastar
7 Replies

7. Shell Programming and Scripting

include file name to extracted files

I've written the script below to merge only .txt files that exist in one directory into one huge .txt file and ignore other files with other extensions. now the result is one huge .txt file with all the contents of other .txt files how can i add a File Name as a comment before each file? ... (12 Replies)
Discussion started by: miss_dodi
12 Replies

8. Shell Programming and Scripting

Using Grep Include/Exclude Files

I wrote this korn script and ran into a hole. I can use find to exclude all the hidden directories and to use my include file/exclude files for running a full backup find / -depth -ipath '/home/testuser/.*' -prune -o -print| grep -f include.mydirs | grep -v -f exclude.mydirs but when I... (8 Replies)
Discussion started by: metallica1973
8 Replies

9. Programming

Include files

I have an implementation file tomog.cpp that implements a class called Tomog where I need to include its header file which resides in another place. How can I best specify the include file? I would not like to do #include "../../tomso/tomography/tomog.hpp" I wish to do instead ... (3 Replies)
Discussion started by: kristinu
3 Replies

10. Programming

[MSYS2/GCC-TDM] Compiler not finding headers in /usr/local/include

I hope it's okay to post this here. I'm working on Windows computer but using the Unix-like environment MSYS2 (https://sourceforge.net/projects/msys2). My problem is that I can't get the compiler to find headers located in /usr/local/include. I am trying to compile libpng which wants the header... (1 Reply)
Discussion started by: AntumDeluge
1 Replies
libgtk-x11-2.0(3)						C Library Functions						 libgtk-x11-2.0(3)

NAME
libgtk-x11-2.0 - Gimp/GNOME Toolkit DESCRIPTION
GTK+ is the Gimp/GNOME Toolkit for the X11 windowing system. It is a library for creating graphical user interfaces. GTK+ uses an object- based component hierarchy. To access the API documentation, you must install the developer version of the package. FILES
The following files are used by this application: /usr/lib/libgtk-x11-2.0.so Gimp/GNOME Toolkit shared library /usr/share/gtk-doc/html/gtk Location of developer documentation ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-base-libs SUNWg- | | |nome-base-libs-64 | +-----------------------------+-----------------------------+ |Interface stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
gtk-query-immodules-2.0(1), gtk-update-icon-cache(1), libcairo(3), libgdk-x11-2.0(3), libgdk_pixbuf-2.0(3), libglib-2.0(3), libgobject(3), libpango-1.0(3), attributes(5), gnome-interfaces(5), gnome-std-options(5), X11(5) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2004, 2006. SunOS 5.11 31 Aug 2004 libgtk-x11-2.0(3)
All times are GMT -4. The time now is 09:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy