[SOLVED] Gcc Problems with mint17

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
phoenixcomm
Level 1
Level 1
Posts: 34
Joined: Fri Mar 23, 2012 7:04 pm

[SOLVED] Gcc Problems with mint17

Post by phoenixcomm »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
gtsfer

Re: Gcc Problems with mint17

Post by gtsfer »

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.
jahid

Re: Gcc Problems with mint17

Post by jahid »

install libc6-dev package.
phoenixcomm
Level 1
Level 1
Posts: 34
Joined: Fri Mar 23, 2012 7:04 pm

Re: Gcc Problems with mint17

Post by phoenixcomm »

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!
jahid

Re: Gcc Problems with mint17

Post by jahid »

That's a probelm with your codes, not with compiler...
phoenixcomm
Level 1
Level 1
Posts: 34
Joined: Fri Mar 23, 2012 7:04 pm

Re: Gcc Problems with mint17

Post by phoenixcomm »

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);
WharfRat

Re: Gcc Problems with mint17

Post by WharfRat »

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
Locked

Return to “Software & Applications”