Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: gspoo on November 10, 2007, 01:34:31 pm

Title: Terminal and MsDos on Windows
Post by: gspoo on November 10, 2007, 01:34:31 pm
Hi guys!
Im quite new to programming and in school we do it on a Linux system, so my question is:

Is there a way to get something similar to the terminal in Unix systems for Windows?
The MsDos window is very, very (i mean "very") unhandy since you need the system("PAUSE") command to keep it open and i have no idea how to start a program directly with parameters (like :"Multiply 5 3 "to start a programm that multiplies 5 and 3 ) so would really want a "Terminal".

BTW: im using Vista if that matters...

greets gspoo
Title: Re: Terminal and MsDos on Windows
Post by: XayC on November 10, 2007, 03:24:16 pm
I guess you are looking for the shell (console window) in Windows. To open a new console window run the command 'cmd', to run a command use the start menu, or the shortcut WINDOWSKEY+R.

When you have the console you can work like you would have done in Linux. For example you can move to where you have your program executable and run it passing parameters.

Regards, XayC
Title: Re: Terminal and MsDos on Windows
Post by: gspoo on November 13, 2007, 09:01:51 pm
Thx alot gotta try that, but for the moment I solved it by executing my programs on a Server running with linux due to ssh :P
But now i noticed a new problem:
If I try to compile its says:

Compiling: C:\Users\gspoo\Programme Informatik\Stack.cpp
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

I downloaded the full package (with compilers) and am using the GNU compiler...
whats the problem there?

BTW: Does it make sense to install dev c++ and code::Blocks?

mfg gspoo
Title: Re: Terminal and MsDos on Windows
Post by: darthdespotism on November 13, 2007, 09:33:28 pm
For C::B + MinGW there is an HowTo in the codeblocks wiki:
http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista