[SOLVED] Gcc Problems with mint17

Questions about applications and software
Forum rules
Before you post please read this

[SOLVED] Gcc Problems with mint17

Postby phoenixcomm on Wed Jun 25, 2014 9:33 am

hi I have Mint17 Cinnamon desktop and eclipse for development. And I have the same problem on my desk & laptop. It looks like Gcc cant find the installed libraries: :oops:
Code: Select all
HaleysCommet RSS_Host # gcc main.c
main.c:14:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>

this should work :!:
Thank you for any help
~~ Cris
Last edited by phoenixcomm on Mon Jun 30, 2014 4:43 pm, edited 1 time in total.
phoenixcomm
Level 1
Level 1
 
Posts: 21
Joined: Fri Mar 23, 2012 7:04 pm

Linux Mint is funded by ads and donations.
 

Re: Gcc Problems with mint17

Postby gtsfer on Wed Jun 25, 2014 12:47 pm

Tracing back I found that I have several copies of stdio.h. One is contained in the syslinux package (actually syslinux-common). You should be able to get it from Synaptic Package Manager. Just install syslinux and it will get syslinux-common as it is a dependency.
There's no Windows in my house. And it's a brighter and happier place now.
LMDE Mate, Cinnamon 17, KDE 17, Debian 7.6.0. Edit your first post and add SOLVED to the Subject if it's resolved.
User avatar
gtsfer
Level 7
Level 7
 
Posts: 1691
Joined: Mon May 27, 2013 9:15 am
Location: Bucks County PA, USA

Re: Gcc Problems with mint17

Postby jahid on Wed Jun 25, 2014 1:07 pm

install libc6-dev package.
jahid@HP ProBook 440 G1 Laptop
User avatar
jahid
Level 5
Level 5
 
Posts: 831
Joined: Sat Dec 07, 2013 4:07 pm
Location: Khulna, Bangladesh

Re: Gcc Problems with mint17

Postby phoenixcomm on Wed Jun 25, 2014 4:48 pm

I had syslinux instaaled... I installed libc6-dev that solved most but I still have a problem: :oops:
../RSS_Host/init_C3436A.c: In function ‘init_C3436A’:
../RSS_Host/init_C3436A.c:44:4: warning: implicit declaration of function ‘fcntl’ [-Wimplicit-function-declaration]
fcntl( this_tuner -> fd[rw], F_SETFL, 0);
^
../RSS_Host/init_C3436A.c:44:33: error: ‘F_SETFL’ undeclared (first use in this function)
fcntl( this_tuner -> fd[rw], F_SETFL, 0);
^

Thanks for the help!
phoenixcomm
Level 1
Level 1
 
Posts: 21
Joined: Fri Mar 23, 2012 7:04 pm

Re: Gcc Problems with mint17

Postby jahid on Wed Jun 25, 2014 6:12 pm

That's a probelm with your codes, not with compiler...
jahid@HP ProBook 440 G1 Laptop
User avatar
jahid
Level 5
Level 5
 
Posts: 831
Joined: Sat Dec 07, 2013 4:07 pm
Location: Khulna, Bangladesh

Re: Gcc Problems with mint17

Postby phoenixcomm on Wed Jun 25, 2014 7:59 pm

no my code base is fine.. it worked before installing 17!! :wink:
Code: Select all
#include <unistd.h>
#include <fcntl.h>

fcntl( this_tuner -> fd[rw], F_SETFL, 0);
phoenixcomm
Level 1
Level 1
 
Posts: 21
Joined: Fri Mar 23, 2012 7:04 pm

Re: Gcc Problems with mint17

Postby WharfRat on Wed Jun 25, 2014 8:27 pm

It looks like you need either linux-headers-$(uname -r) or linux-libc-dev.

If you still have problems then declare it
Code: Select all
#define F_SETFL      4
Image
User avatar
WharfRat
Level 12
Level 12
 
Posts: 4187
Joined: Thu Apr 07, 2011 8:15 pm

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 16 guests