Page 1 of 1
Running .cpp files
Posted: Sun Nov 24, 2002 10:57 am
by Saber
OK, trying to get a .cpp file to run using textpad. What exaclty do I need to do this and how. Running a Win98 SE machine with the evaluation version of Textpad.
Thanks in advance,
Saber
Re: Running .cpp files
Posted: Sun Nov 24, 2002 11:01 am
by Saber
Would I need a compiler like borland C++ or something and then something else to run it?
Re: Running .cpp files
Posted: Sun Nov 24, 2002 7:26 pm
by Saber
Well, I just installed borland C++ and added all the correct files and paths, buuut, everytime i try to run the program, i get this error:
D:\MSN Stuff\Document.cpp:
Error E2209 D:\MSN Stuff\Document.cpp 1: Unable to open include file 'iostream.h'
Error E2451 D:\MSN Stuff\Document.cpp 4: Undefined symbol 'cout' in function main()
Error E2451 D:\MSN Stuff\Document.cpp 4: Undefined symbol 'endl' in function main()
*** 3 errors in Compile ***
any ideas what I am doing wrong.
This is the code for the program, just to test to see If it works:
#include <iostream.h>
void main(){
cout << "this is a test" << endl;
}
Re: Running .cpp files
Posted: Sun Nov 24, 2002 7:27 pm
by Saber
that #include has the iostream library after it, just doesnt show up on the forum.
Re: Running .cpp files
Posted: Sun Dec 01, 2002 6:54 am
by XpNeRd
Check this link below and follow the instructions as mentioned.
-------------------------------------------------------------------------------------------------------------------
NOTE FOR WINDOWS2000/XP:
If you are using Win2K/XP then instead of setting the path in autoexec.bat...add the path to the "bin" folder to the Path variable defined under "Environment Variables". In 2000/XP its located in Control Panel/System/Advanced Tab. Under Advanced Tab you'll see a button named "Environment Variable". "Path" is defined under "System Variable" and not "User Variable"!
--------------------------------------------------------------------------------------------------------------------
http://www.textpad.com/support/tips/bor ... ml#borland
I followed the above instructions and I am happily running borland 5.5 compiler with TextPad:)
hope this helps...good luck
XpNeRd