Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-04-2004, 01:44 PM   #1
Registered: Sep 2003
Posts: 228

Rep: Reputation: 30
compiling errors

I have been tearing my hair out trying to get rid of this Media tray empty error that I get. I have found a few files that contain the error and I am trying to affect the code so it fixes the problem, but I don't know c and when I go to compile the file usb.c I get:

usb.c:40:25: cups/string.h: No such file or directory
usb.c: In function `main':
usb.c:245: `status' undeclared (first use in this function)
usb.c:245: (Each undeclared identifier is reported only once
usb.c:245: for each function it appears in.)

I haven't changed the file yet I just wanted to see if I could compile it and I typed
gcc -o usb usb.c

when I tried to compile. Same error in emacs.

any thoughts/
Old 04-04-2004, 01:54 PM   #2
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
As it is not finding the header file cups/string.h this would suggest that you don't have the CUPS development packages installed. This package's exact name will depend on your distribution however is probably cups-devel-something. Istalling this should provide the header files you need.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Errors compiling boombastic Linux - Newbie 7 08-04-2004 03:09 PM
Compiling 2.6.7 gets errors !! td0l2 Linux - Newbie 4 06-29-2004 10:59 PM
Errors when compiling anything! adizzle Linux - Newbie 4 06-16-2004 05:27 PM
Errors compiling 2.6.0 plisken Linux - General 3 10-10-2003 05:12 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration