LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2009, 12:47 AM   #1
takmark
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
lcc cannot find stddef.h


Hello I just installed lcc-4.1-2 RPM in my SUSE 10.3 machine to do some cross-compilation for MIPS using the command

lcc -S -Wf-target=mips/ultrix filename.c -o filename.s

cpp is searching for stddef.h with no success and produces the error message "could not find include file <stddef.h>"

I found stddef.h in the following directories:
/usr/include/linux
/usr/lib/gcc/i586-suse-linux/4.2.1/include

Anu hint how I could make cpp find stddef.h?

Thanks in advance,
Takis
 
Old 04-18-2009, 12:51 AM   #2
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, FreeDOS, Illumos, NetBSD, OpenBSD, DragonflyBSD, Replicant, Plan9, Inferno, HURD
Posts: 1,283

Rep: Reputation: 232Reputation: 232Reputation: 232
My guess is stddef.h is a library you also need to give lcc a switch to. For example, when I try to use the curses library with gcc, I have to type 'gcc -lncurses program.C' Check the stddef.h docs. Or is it a much more standard library than curses? If so, I am unsure what to do; I have not used lcc much....
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 06:19 AM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 04:45 PM
Linux Question About #include <Linux/stddef.h> Syntax Peatmoss Programming 3 01-31-2008 11:46 AM
Is there a way to find recently created/edited files without using find? BrianK Linux - General 2 10-15-2007 09:41 PM
hello, is anyone here interested in lcc? keyboard Programming 0 02-25-2005 12:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 PM.

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