Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-22-2017, 03:49 PM   #1
Registered: Mar 2014
Posts: 38

Rep: Reputation: Disabled
regdef.h: No such file or directory. How can I includ files requerd by gcc?

Hi Im trying to cross-compile simple c program but Im getting folovig error

hello.S:10:20: error: regdef.h: No such file or directory
 * hello-1.2/Makefile
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 * Copyright (C) 1995, 1997 by Ralf Baechle
#include <regdef.h>
#include <sys/asm.h>
#include <sys/syscall.h>
I have that file regdef.h but its located here
I tried adding that path with

export LD_LIBRARY_PATH=/home/slobodan/rtl819x-toolchain/toolchain/rsdk-1.5.5
but gcc cant find it, so what I need to do in order that gcc can find that regdef.h except coping it to /usr/include

Last edited by Vido; 03-22-2017 at 03:52 PM.
Old 03-22-2017, 06:43 PM   #2
Keith Hedger
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,940

Rep: Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780
you need to use the -I switch to the co piler to tell it to look in non standard places eg
gcc -I/path/to/folder/with/incudes
the LD_LIBRARY_PATH is for run time not co pile time
2 members found this post helpful.
Old 03-30-2017, 12:02 PM   #3
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Yes thats it tnx


error message, gcc, library

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
gcc will not execute, responds with 'no such file or directory' and 'no input file' nckeecho Ubuntu 9 07-24-2016 01:04 PM
stdio.h: No such file or directory. file is missing during gcc complile. culser Linux - Software 4 03-03-2011 01:59 PM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 06:09 AM
gcc: No such file or directory babysealclubber Linux - Software 2 01-22-2004 03:03 PM
Saving gcc output files to new directory Fe98 Programming 3 12-08-2003 07:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:23 AM.

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
Open Source Consulting | Domain Registration