[SOLVED] Gcc Problems with mint17

Questions about applications and software
Forum rules
Before you post please read how to get help
phoenixcomm
Level 1
Level 1
Posts: 23
Joined: Fri Mar 23, 2012 7:04 pm

[SOLVED] Gcc Problems with mint17

Postby phoenixcomm » 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.

User avatar
gtsfer
Level 7
Level 7
Posts: 1756
Joined: Mon May 27, 2013 9:15 am
Location: Bucks County PA, USA

Re: Gcc Problems with mint17

Postby gtsfer » 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.
Please add SOLVED to the Subject if it's resolved.
There is no gravity, the earth sucks.

User avatar
jahid
Level 6
Level 6
Posts: 1224
Joined: Sat Dec 07, 2013 4:07 pm
Location: Khulna, Bangladesh

Re: Gcc Problems with mint17

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

install libc6-dev package.
jahid@HP ProBook 440 G1 Laptop

phoenixcomm
Level 1
Level 1
Posts: 23
Joined: Fri Mar 23, 2012 7:04 pm

Re: Gcc Problems with mint17

Postby phoenixcomm » 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!

User avatar
jahid
Level 6
Level 6
Posts: 1224
Joined: Sat Dec 07, 2013 4:07 pm
Location: Khulna, Bangladesh

Re: Gcc Problems with mint17

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

That's a probelm with your codes, not with compiler...
jahid@HP ProBook 440 G1 Laptop

phoenixcomm
Level 1
Level 1
Posts: 23
Joined: Fri Mar 23, 2012 7:04 pm

Re: Gcc Problems with mint17

Postby phoenixcomm » 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);

User avatar
WharfRat
Level 16
Level 16
Posts: 6960
Joined: Thu Apr 07, 2011 8:15 pm

Re: Gcc Problems with mint17

Postby WharfRat » 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


Return to “Software & Applications”

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests