Running .cpp files

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Saber

Running .cpp files

Post 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
Saber

Re: Running .cpp files

Post by Saber »

Would I need a compiler like borland C++ or something and then something else to run it?
Saber

Re: Running .cpp files

Post 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;
}
Saber

Re: Running .cpp files

Post by Saber »

that #include has the iostream library after it, just doesnt show up on the forum.
XpNeRd

Re: Running .cpp files

Post 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
Post Reply