I've searched for an attempted fix for this problem but it seems that people haven't had this problem. When I try to compile a C program with gcc (Ubuntu 18.04, GCC 7.5.0) I get the error as said in the title but if I use g++ it works just fine. What could be the reason for this? (Also fairly new to Linux)
122226
One of my Ubuntu 10.04 servers is giving me trouble. When I run fsck.ext4 -n /dev/sda5 it tells me there are errors in the free inode count, free block count, and more.  I have tried:  touch /forcefsck   Also tried:  shutdown -rF now   and still, after reboot, I see errors.  I also just checked on my eeePC netbook, Ubuntu 10.10, and have the same issue!  How can I force a really "forced" "forceful" "seriously fix my filesystem" fsck of the "/" filesystem on reboot?  Clarification: I run fsck.ext4 -n because it's a mounted filesystem, to check if there are errors. This tells me that there are. I thought that the automatic fsck every 30 mounts during the boot-up process is precisely to take care of errors in the root filesystem. But it doesn't do it in my case. I could reboot with a LiveCD and fix the errors, and then reboot again, but that's some serious downtime for a live server. A reboot, auto fsck, then continue booting is much more sustainable on a live server, and I believe should be the right behaviour.  Additional info: Here is the output. It looks like something that the autofsck would fix, doesn't it?  root@server:~# fsck.ext4 -n /dev/sda5 e2fsck 1.41.11 (14-Mar-2010) Warning!  /dev/sda5 is mounted. Warning: skipping journal recovery because doing a read-only filesystem check. /dev/sda5 contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong (1849368, counted=1948909). Fix? no  Free inodes count wrong (545504, counted=552134). Fix? no   /dev/sda5: ********** WARNING: Filesystem still has errors **********  /dev/sda5: 116752/662256 files (0.2% non-contiguous), 795324/2644692 blocks
27099
Why am I getting this warning and how to fix it? Essentially, I want to convert a video to a jpg every 4th frame with the same resolution as original video.  [jalal@goku vid2]$ ffmpeg -i debate_vid2.mov -r 0.25 images_%08d.jpg ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)   configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect   libavutil      54. 20.100 / 54. 20.100   libavcodec     56. 26.100 / 56. 26.100   libavformat    56. 25.101 / 56. 25.101   libavdevice    56.  4.100 / 56.  4.100   libavfilter     5. 11.102 /  5. 11.102   libavresample   2.  1.  0 /  2.  1.  0   libswscale      3.  1.101 /  3.  1.101   libswresample   1.  1.100 /  1.  1.100   libpostproc    53.  3.100 / 53.  3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'debate_vid2.mov':   Metadata:     major_brand     : qt       minor_version   : 0     compatible_brands: qt       creation_time   : 2017-03-10 02:45:46   Duration: 01:36:50.03, start: 0.000000, bitrate: 785 kb/s     Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default)     Metadata:       creation_time   : 2017-03-10 02:45:46       handler_name    : Core Media Data Handler     Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 334x360 [SAR 1:1 DAR 167:180], 685 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)     Metadata:       creation_time   : 2017-03-10 02:45:46       handler_name    : Core Media Data Handler       encoder         : H.264 [swscaler @ 0x1bb4240] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to 'images_%08d.jpg':   Metadata:     major_brand     : qt       minor_version   : 0     compatible_brands: qt       encoder         : Lavf56.25.101     Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 334x360 [SAR 1:1 DAR 167:180], q=2-31, 200 kb/s, 0.25 fps, 0.25 tbn, 0.25 tbc (default)     Metadata:       creation_time   : 2017-03-10 02:45:46       handler_name    : Core Media Data Handler       encoder         : Lavc56.26.100 mjpeg Stream mapping:   Stream #0:1 -&gt; #0:0 (h264 (native) -&gt; mjpeg (native)) Press [q] to stop, [?] for help frame= 1454 fps= 25 q=1.6 Lsize=N/A time=01:36:56.00 bitrate=N/A dup=0 drop=172847     video:28470kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [jalal@goku vid2]$
101584
I'm trying to solve  and I have a for loop that looks like this:   for(int i = low; i &lt;= high; ++i)         {                 res = runalg(i);                 if (res &gt; highestres)                 {                         highestres = res;                 }          }   Unfortunately I'm getting this error when I try to compile with GCC:     3np1.c:15: error: 'for' loop initial   declaration used outside C99 mode   I don't know what C99 mode is. Any ideas?
79648
I have installed GCC compiler by installing the build-essential package.  After the installation I wrote a simple C program. I tried to run it with the following command:  gcc First.c ./a.out   but I'm getting a bash: ./a.out: Permission denied message. I don't know what to do now.
23889
im currently writing my bachelors thesis and while inserting some cites and adding something to my bib file the above mentioned error occured. i tried to "fix" it by removing all the steps prior to the occuring error but it still remains and i just cant find any solution. since im a total newbie in latex, i would be grateful for any quick help! i found something that should remove this error but it doesnt:  \DeclareUnicodeCharacter{200}{„ “}   which i insert directly after   \usepackage[utf8]{inputenc}   but that still doesnt solve it  thx in advance guys!
35459
Is there a repository containing packages for old versions of gcc, for the latest Ubuntu. I want to install gcc3 alongside gcc 4, for programs that need gcc3 specifically.
76951
I finished building the GCC 4.7.2 with C, C++ and Go compilers on my Ubuntu 12.04. I now want to add the Objective C compiler, is it possible to add it to the previous build? If so, how should i proceed?   Thanks.
50387
I read somewhere that I need to install 'build essential packager' &amp; so I tried:  sudo apt-get install build-essential  Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   But the file still wont compile or run...  gcc -Wall -W -Werror factorial.cpp -o factorial.   gives me:   gcc -Wall -W -Werror factorial.cpp -o factorial. factorial.cpp:3:22: fatal error: iostream.h: No such file or directory compilation terminated   This is my piece of code: //WAP to demonstrate static member for calculating factorial      #include&lt;iostream.h&gt;         #include&lt;conio.h&gt; class fact { int i;     static int count;     public :      void calculate()     {         long int fact1=1;         count++;         for(i=0;i&lt;=count;i++)         {             fact1=fact1*i;         }         cout&lt;&lt;"\nFactorial of"&lt;&lt;count&lt;&lt;"="&lt;&lt;fact1&lt;&lt;"\n";     } }; int fact :: count; void main() {     int i;     clrscr();     fact f;     for(i=1;i&lt;=15;i++)     {         f.calculate();     }     getch(); }   What shoud I do..???
121685
How to fetch HTML in C or C++? with Sockets. Can you give me a Example code pls?  NOTE - I originally closed this, but reopened.  To the poster - Please see:    and
97679
I am curious if anyone have used UnderC, Cint, Cling, Ch, or any other C++ interpreter and could share their experience.
111337
Hello,  I'm getting this error every time when I boot my computer. My Ubuntu installation is fresh and I was got a few error on last step while install Ubuntu (because i have problem with my CDROM driver). Anyway, installation is continued .   For example when i tried to open ADDITIONAL DRIVER and LANGUAGE SUPPORT (on System Settings) nothing happened, it's not opening.  When i try this in terminal gnome-language-selector i'm getting this error  Traceback (most recent call last):   File "/usr/bin/gnome-language-selector", line 8, in &lt;module&gt;     from LanguageSelector.gtk.GtkLanguageSelector import GtkLanguageSelector   File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 34, in &lt;module&gt;     from aptdaemon.gtk3widgets import AptProgressDialog   File "/usr/lib/python2.7/dist-packages/aptdaemon/gtk3widgets.py", line 61, in &lt;module&gt;     class AptStatusIcon(Gtk.Image):   File "/usr/lib/python2.7/dist-packages/aptdaemon/gtk3widgets.py", line 66, in AptStatusIcon     def __init__(self, transaction=None, size=Gtk.IconSize.DIALOG): AttributeError: type object 'GtkIconSize' has no attribute 'DIALOG'   Also getting this error for jockey-gtk  Traceback (most recent call last):   File "/usr/bin/jockey-gtk", line 418, in &lt;module&gt;     sys.exit(u.run())   File "/usr/lib/python2.7/dist-packages/jockey/ui.py", line 461, in run     self.ui_show_main()   File "/usr/bin/jockey-gtk", line 81, in ui_show_main     col_icon.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE) AttributeError: type object 'GtkTreeViewColumnSizing' has no attribute 'AUTOSIZE'   I'm worrying about are there any lack . I don't know what's wrong with my installation.  Are there any way, check my installation (packages, files etc..) .
3559
In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an include statement, as follows?   #include &lt;filename&gt;  #include "filename"
21236
I want to learn Linux Kernel and I've downloaded the latest kernel version. Now I want to configure Linux with make menuconfig and I'm receiving an error:     Arch/x86/Makefile:184  Compiler lacks asm-goto support...   Can somebody help me?
12589
I shifted to Ubuntu 10.10 now I am facing problem to have C/C++ compiler. What are the possible ways so that I can use C/C++ compiler using all the libraries (like graphic, math, conio, stdlib, etc) as in Microsoft Windows creating executable file?
59407
What does the "bus error" message mean, and how does it differ from a segfault?
109503
I tried many solutions to install update for my gcc compiler on debian server. None of them worked. I need the compiler update to use new features of c++11, as this provides a stable libcxx11 ABI, and stable support for C++11 (refer ). Specifically getting version `GLIBCXX_3.4.21' which is not included in my current compiler gcc version 4.9.2 (Debian 4.9.2-10).   Some pointers to solution will be helpful. Thanks in advance.  Some links to forum related to my issue which I already tried:      (not entirely related solution is for ubuntu, but I couldn't find gcc-5 in ftp server of debian yet)
52663
I want to compile my program with the latest version of gcc.  Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: . I tried to install it  sudo apt-get install gcc-4.9   but it says  Reading package lists... Done Building dependency tree        Reading state information... Done Note, selecting 'gcc-4.9-base' for regex 'gcc-4.9' gcc-4.9-base is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   Looks like it is already installed, just not as the default one? How do I utilize it to build my program?