Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Getting Error : termios.h no such file or directory
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Getting Error : termios.h no such file or directory (Read 23673 times)
techsolnltd
Single posting newcomer
Posts: 2
Getting Error : termios.h no such file or directory
«
on:
April 14, 2015, 09:32:53 am »
Hi,
I am trying to build a standard C code to be executed over linux platform but getting an error : " termios.h no such file or directory"
Can anybody guide me that how to resolve this issue.
Logged
stahta01
Lives here!
Posts: 7591
Re: Getting Error : termios.h no such file or directory
«
Reply #1 on:
April 14, 2015, 04:42:13 pm »
Add the package that contains the needed header. Likely libc6-dev on Debian systems.
FYI: This is likely NOT a valid CB Topic; I suggest asking Linux question on a Linux support web-site.
Edit: After verifying the header exists and if the problem still happens post the build log
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Tim S.
«
Last Edit: April 14, 2015, 04:50:56 pm by stahta01
»
Logged
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ.
http://wiki.codeblocks.org
techsolnltd
Single posting newcomer
Posts: 2
Re: Getting Error : termios.h no such file or directory
«
Reply #2 on:
April 15, 2015, 07:36:00 am »
Hi Tim,
Thanks for your reply.
Firstly I have installed this IDE on windows platform and using gcc compiler as such.
Now tell me that what needs to be added/removed/modified in order to include termios.h
Logged
stahta01
Lives here!
Posts: 7591
Re: Getting Error : termios.h no such file or directory
«
Reply #3 on:
April 15, 2015, 10:06:21 am »
You need to install a cross compiler that runs under windows and compiles for Linux.
FYI: I have never found one; so, please post back if you find one that works.
Edit: Two links Google found
http://metamod-p.sourceforge.net/cross-compiling.on.windows.for.linux.html
http://www.mingw.org/wiki/HostedCrossCompilerHOWTO
Edit2: Found another link that looks possible
http://stackoverflow.com/questions/4769968/c-cross-compiler-from-windows-to-linux
Tim S.
«
Last Edit: April 15, 2015, 11:12:56 am by stahta01
»
Logged
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ.
http://wiki.codeblocks.org
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Getting Error : termios.h no such file or directory