Author Topic: Help with compiling errors  (Read 11837 times)

Offline GingerDolphin

  • Multiple posting newcomer
  • *
  • Posts: 11
  • Qwerty should be a word.
Re: Help with compiling errors
« Reply #15 on: July 14, 2014, 06:02:06 am »
typed it in word for word, one line at a time. this is the result:

mingw32-c++.exe: fatal error: no input files
compilation terminated.
It took me an hour to register here. I was a robot for an hour, don't mess with a former robot O.O

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help with compiling errors
« Reply #16 on: July 14, 2014, 04:27:14 pm »
typed it in word for word, one line at a time. this is the result:

mingw32-c++.exe: fatal error: no input files
compilation terminated.

Did you do the -v or not?

Because if you did the dash v you [likely] have a bad Mingw Installation.

Tim S.
« Last Edit: July 14, 2014, 06:21:35 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help with compiling errors
« Reply #17 on: July 14, 2014, 07:05:14 pm »
I created a batch file for you to try; please read that thread but do NOT post in it.
Since this thread is already started.

http://forums.codeblocks.org/index.php/topic,19453.msg132925.html#msg132925

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline GingerDolphin

  • Multiple posting newcomer
  • *
  • Posts: 11
  • Qwerty should be a word.
Re: Help with compiling errors
« Reply #18 on: July 14, 2014, 11:49:26 pm »
Yeah, I probably don't have it installed correctly. When I run the batch file, (and I did make sure to set the path to the MinGW installation) it comes up with a lot of "No such file or directory" errors. If you need all the text from the cmd window, I can edit the post.

I am using the MinGW that comes with Code::Blocks-- is that bad? Are there known installation problems? Everytime I re-install Code::Blocks, it messes up, should I get a new installer and try that? Or just get MinGW by itself and use that?
« Last Edit: July 14, 2014, 11:52:34 pm by GingerDolphin »
It took me an hour to register here. I was a robot for an hour, don't mess with a former robot O.O

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help with compiling errors
« Reply #19 on: July 14, 2014, 11:54:59 pm »
Yeah, I probably don't have it installed correctly. When I run the batch file, (and I did make sure to set the path to the MinGW installation) it comes up with a lot of "No such file or directory" errors. If you need all the text from the cmd window, I can edit the post.

I am using the MinGW that comes with Code::Blocks-- is that bad? Are there known installation problems? Everytime I re-install Code::Blocks, it messes up, should I get a new installer and try that? Or just get MinGW by itself and use that?

No need for the result; I suggest uninstalling all MinGW GCC installations.
Then rebooting the computer.
Then installing a single MinGW GCC.
Edit: I suggest installing MinGW by itself using a TDM installer. http://sourceforge.net/projects/tdm-gcc/?source=directory

Tim S.
« Last Edit: July 14, 2014, 11:56:46 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline GingerDolphin

  • Multiple posting newcomer
  • *
  • Posts: 11
  • Qwerty should be a word.
Re: Help with compiling errors
« Reply #20 on: July 15, 2014, 12:26:13 am »
Is there a way to install Code::Blocks without MinGW so in the future I can get MinGW by itself without deleting the one already installed?
It took me an hour to register here. I was a robot for an hour, don't mess with a former robot O.O

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help with compiling errors
« Reply #21 on: July 15, 2014, 12:32:36 am »
Is there a way to install Code::Blocks without MinGW so in the future I can get MinGW by itself without deleting the one already installed?

Just install Code::Blocks with an installer that does not have mingw in the filename.

I would suggest codeblocks-13.12-setup.exe.

Tim S
« Last Edit: July 15, 2014, 12:35:49 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline GingerDolphin

  • Multiple posting newcomer
  • *
  • Posts: 11
  • Qwerty should be a word.
Re: Help with compiling errors
« Reply #22 on: July 22, 2014, 02:30:13 am »
Sorry for the delay, I was in Illinois for a week :)

I came to this forum with the first impression that the admins here were complete asses.
After actually looking at some posts, and the experience here, I just realize you have to deal with idiots all the time. If I had to go through all those posts and deal with things like that, I'd be a little quick to get aggravated too.

Thank you for putting the time into helping me out. It turned out to be something wrong with my hard drive, but the issue seems to be fixed now. Still, thank you all for the help, you all sacrificed a good bit of time dealing with/educating me  ;D
It took me an hour to register here. I was a robot for an hour, don't mess with a former robot O.O