Several beginner problems with C++
Posted: Wed Jun 04, 2003 9:05 pm
I'm sorry I'm asking this, I spent quite some hours trying to avoid this thread but I don't know where to look anymore.
Here are my problems (mind you, I'm new at this
):
1.) I installed gcc and TextPad under Win2k (!), added the "Compile C++"-thing which looks like this:
Command: C:\Program Files\MinGW\bin\g++.exe // Of course added the dir to the PATH
Parameters: $File -o $BaseName
Initial Folder: $FileDir
Reg. expr.: ^\([^(]+\)(\([0-9]+\)):
File: 1, Line: 2
Now when I program crap (which I do all the time since I got no clue what I'm actually doing), I get the command results with the error messages.
Something like:
"C:/My Documents/Edu/test.c:2:2: warning: no newline at end of file"
Q.: What do I have to do to jump directly to the error???
2.)
Also added the "Run C++ File" which looks like that:
Command: C:\WINNT\system32\CMD.EXE
Parameters: /k $BaseName
Initial Folder: $FileDir
with the "Close DOS..." enabled and "Catch output" disabled.
IT STILL WON'T CLOSE, after the program is finished. I get to the usual prompt so that I have to exit by mouse or with 'exit'.
Q.: What am I doing wrong? (Could it be that it works like that under Win9x, but how does one get to do it on Win2k???)
( 3.) - Didn't really search for that one: How about "programming" PHP with Textpad? is there synatx highlighting?)
Thank a lot in advance, I really tried to find out by myself, but even ppl who use TextPad couldn't help me!!!
Here are my problems (mind you, I'm new at this
1.) I installed gcc and TextPad under Win2k (!), added the "Compile C++"-thing which looks like this:
Command: C:\Program Files\MinGW\bin\g++.exe // Of course added the dir to the PATH
Parameters: $File -o $BaseName
Initial Folder: $FileDir
Reg. expr.: ^\([^(]+\)(\([0-9]+\)):
File: 1, Line: 2
Now when I program crap (which I do all the time since I got no clue what I'm actually doing), I get the command results with the error messages.
Something like:
"C:/My Documents/Edu/test.c:2:2: warning: no newline at end of file"
Q.: What do I have to do to jump directly to the error???
2.)
Command: C:\WINNT\system32\CMD.EXE
Parameters: /k $BaseName
Initial Folder: $FileDir
with the "Close DOS..." enabled and "Catch output" disabled.
IT STILL WON'T CLOSE, after the program is finished. I get to the usual prompt so that I have to exit by mouse or with 'exit'.
Q.: What am I doing wrong? (Could it be that it works like that under Win9x, but how does one get to do it on Win2k???)
( 3.) - Didn't really search for that one: How about "programming" PHP with Textpad? is there synatx highlighting?)
Thank a lot in advance, I really tried to find out by myself, but even ppl who use TextPad couldn't help me!!!