Updating gcc ubuntu
Type the following apt-get command: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. The /etc/apt/file contains a list of locations from which to retrieve desired package files. It works like Microsoft or Red Hat update manager i.e.you will see a little icon in the kicker bar/taskbar when there are updates.But for what I really want to do, I need to include more complicated elements and build the project with ./configure, make, make install.To do this, I know that I need to use a command something like this: ./configure --host=x86_64-w64-mingw32--build=x86_64-w64-mingw32 with-dest=$PWD/_install To configure it for the cross-compilation.The one that came with mingw, by default, is too old. p=269#more-269) of mingw from source, which compiled a newer version of gcc. How can I specify the new mingw (and/or new gcc) for configuring, make, install? Long story short: I need to help updating the gcc compiler that mingw uses to compile for windows within my linux build environment.If you were using 14.04 instead of 13.10, this would be a moot point: the Min GW-w64 GCC in Trusty's repos is 4.8.2.The one that came with mingw, by default, is too old. p=269#more-269) of mingw from source, which compiled a newer version of gcc. How can I specify the new mingw (and/or new gcc) for configuring, make, install? The instructions that Zeranoe's build script gives tells the user to add the install directory for the toolchain to your PATH variable.Let's say it installed to $HOME/mingw-build/mingw-w64-x86_64. It's going to be something like: export PATH=$HOME/mingw-build/mingw-w64-x86_64/bin:$PATH which inserts the bin path for the GCC install into the PATH before the rest of the entries.
You need NOT to make any changes to this file until and unless you need extra repositories for your setup.
It's why I switched the cross-compilation guide I maintain for FFmpeg and mpv and their dependencies from using the build script to also guiding the user through installing the toolchain just like everything else in the guide (based, admittedly, on what Zeranoe's build script used to do, just with more updated components).
I haven't fleshed out instructions for Win64-targeted toolchains, though - it might be as simple as changing the --host= commands, it might not.
As your Ubuntu installation gets older, you might be missing out on newer C features in the GCC compilers.
You might want to try to upgrade the GCC compilers to a more recent version.