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
Running .cpp files
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Saber
Re: Running .cpp files
Would I need a compiler like borland C++ or something and then something else to run it?
-
Saber
Re: Running .cpp files
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;
}
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
that #include has the iostream library after it, just doesnt show up on the forum.
-
XpNeRd
Re: Running .cpp files
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
-------------------------------------------------------------------------------------------------------------------
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