LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-07-2004, 12:58 PM   #1
taichiman
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Rep: Reputation: 0
How to find Linux kernel & gcc version


Hi,

what command do I use to find out my Linux kernel and gcc version.

Also can someone explain gcc to me?

Thanks,
Taichiman
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-07-2004, 01:00 PM   #2
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
uname -r
gcc -v
 
2 members found this post helpful.
Old 11-07-2004, 01:11 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912
gcc is the c / c++ compiler.
 
Old 04-12-2016, 08:28 AM   #4
Lsatenstein
Member
 
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora 31and Tumbleweed) Gnome versions
Posts: 311
Blog Entries: 1

Rep: Reputation: 59
How to find the gcc version in the C source code

The old compilers did not support the restrict keyword as
#include <stdio.h>
#include <xxxxx.h>


char * restrict cptr;

or

void * restrict vptr;

etc.

For Centos7, restrict is not available
For Fedora, and Suse and Ubuntu
restrict is available.

What is the Something and what are the ?????
In the code...

#if SOMETHING < ??????
#define restrict
#endif
 
Old 04-12-2016, 09:20 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
12 years is getting close to the record for a neckro post
 
  


Reply



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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Find out distribution + version (NOT: kernel version!) Tajci Red Hat 5 06-08-2005 03:17 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM
gcc version & X driver BroX Slackware 3 03-13-2004 07:57 AM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration