cant get GNU gcc to work ? ? ?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Michel6752
Level 1
Level 1
Posts: 2
Joined: Wed Apr 11, 2018 5:45 pm

cant get GNU gcc to work ? ? ?

Post by Michel6752 » Mon Apr 23, 2018 7:46 pm

I'm a newby to Mint, so please be patient.
I've used gcc before (on Ubuntu 9-10-11 etc and Xubuntu), in a terminal & in code::blocks
Since I've moved to Linux Mint I cant get gcc to work. After a file is compiled, when I run the compiled
(let's say ./FILE) The compiler sends a message: "error creating file"

Have I left something out during configuration ?

Thank you for your help.

User avatar
catweazel
Level 14
Level 14
Posts: 5204
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: cant get GNU gcc to work ? ? ?

Post by catweazel » Tue Apr 24, 2018 2:05 am

Michel6752 wrote:
Mon Apr 23, 2018 7:46 pm
Have I left something out during configuration ?
Who knows! You haven't said how you configured it.
A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. - Max Planck

stormryder
Level 3
Level 3
Posts: 127
Joined: Sun Nov 30, 2014 8:40 am

Re: cant get GNU gcc to work ? ? ?

Post by stormryder » Tue Apr 24, 2018 7:38 am

Michel6752 wrote:
Mon Apr 23, 2018 7:46 pm
on Ubuntu 9-10-11 etc
Mint may be installing a different version of gcc from the one that was available for those older versions of Ubuntu. You could try looking in synaptic for older versions of gcc.

rene
Level 7
Level 7
Posts: 1724
Joined: Sun Mar 27, 2016 6:58 pm

Re: cant get GNU gcc to work ? ? ?

Post by rene » Tue Apr 24, 2018 8:27 am

Michel6752 wrote:
Mon Apr 23, 2018 7:46 pm
After a file is compiled, when I run the compiled (let's say ./FILE) The compiler sends a message: "error creating file"

Have I left something out during configuration ?
There's generally nothing to configure for gcc, and your description would seem to say that it's your program that produces the error message, not the compiler. Please post either your actual program or a minimal example showing the issue and the command with which you compile it.

Michel6752
Level 1
Level 1
Posts: 2
Joined: Wed Apr 11, 2018 5:45 pm

Re: cant get GNU gcc to work ? ? ?

Post by Michel6752 » Wed Apr 25, 2018 12:48 pm

OK I found ONE answer (perhaps there are other answers)

I installed Mint THEN gcc version 7 right after. Previously I had gcc version 4.7

My old source codes work WHEN compiled using version 7. The older executables compiled in version 4.7 don't run in version 7
"error creating file" was a valid output from one of those executables.

Please tell me if this is usual (I have just a beginner's knowledge with compilers).

Thank you for your answer.

Post Reply

Return to “Software & Applications”