I am trying to do an installations of Linux Mint 16 'petra' on both 32 and 64 bit installs.

I have no internet connection on my pc so have to install all additional software manually. Being a developer I thought I would attempt to install codeblocks with wxWidgets so followed the instructions found at:

In order to perform the installation it appeared that i would need pre-requistites so following instructions found on
https://developer.gnome.org/gtk3/stable ... lding.html
downloaded glib 'stuff', unpacked and ran configure.

It's at this point that things fail. I get a message in the terminal stating that the C compiler cannot create executables and to see config.log for more details which contains (amongst other stuff) the following:

This is simply GNU autoconf probing for your compiler's version. GCC not being able to create executables usually means that you do not have the development headers of Glibc installed, i.e. there is (almost) nothing in /usr/include.
–
Hristo IlievDec 19 '13 at 9:44

Hi Hristo, thanks for taking the time to comment. is there any further instruction you can give me regarding what i need to do? Do i just search for the dev headers and try to install them? Really unfamiliar with linux so please excuse my lack of understanding.
–
user3118566Dec 19 '13 at 10:11

Never used Mint, but in Ubuntu (and afaik Mint is derived from Ubuntu) the package is called libc6-dev. You might need other development headers too though.
–
Hristo IlievDec 19 '13 at 11:33

1 Answer
1

On some versions of gcc, the -V option tells it to use a specified version of the compiler -- but it requires an argument. It's documented here. The option appears to have been removed some time between 4.5.4 and 4.6.4.

But a configuration script like this is expected to do things that don't work, so it can determine what compiler it's using and what features it supports. It appears that at this point the script is not assuming that the compiler it's invoking is gcc; rather, it's trying a number of different options to get the compiler to report its own version number.

I think that the error message you've shown us:

gcc: error: unrecognized command line option '-V'

is not related to the problem you're encountering.

You need to focus on the portion of the log immediately preceding the error message that says the C compiler "cannot produce executables".

The first thing I'd try is to compile and execute a simple "hello, world" program. If that doesn't work, then you're missing something, and your compiler really doesn't work. If it does work, then you need to study the config.log file to see what's really causing the error.

I've sometimes hacked the configure script to print more information to track down problems like this. For example, it will generate and compiler a small C program; you can add code to save a copy of that C program and examine it separately.