TSE: Language: Computer: C++

7 views
Skip to first unread message

knud van eeden

unread,
Jan 28, 2023, 10:19:33 AM1/28/23
to SemWare TSE Pro Text Editor
Hello,

FYI

How to compile C++ programs from within TSE?

1. Information about C++


2. To learn C++


3. To install C++


4. Create a .bat file COMCPP.BAT (e.g. save it in your TSE path and adapt the path to the conditions on your system)

g:
cd \language\computer\cpp\embarcadero\borland\bcc55\bin\
del g:\language\computer\cpp\embarcadero\borland\bcc55\bin\%1.exe
g:\language\computer\cpp\embarcadero\borland\bcc55\bin\bcc32.exe -Ig:\language\computer\cpp\embarcadero\borland\bcc55\include -Lg:\language\computer\cpp\embarcadero\borland\bcc55\lib %3 > %6
@ECHO.
g:\language\computer\cpp\embarcadero\borland\bcc55\bin\%1.exe
@ECHO.
@PAUSE

5. Add these TSE compiler options (e.g. run my chanblab.s and merge (or add it manually))

Extension=.cpp
Description=C++: Knud
Command=COMCPP.BAT &name& &ext& &fn& &drive& &path& &output&
Output=Don't Clear Screen or Prompt After Shell
 -Error=^{Warning}|{Error}|{Fatal} {W|E|F}[0-9]* #{.*} {[0-9]#}: {.@}$\c
  Error: Options=i
  Error: Extra line (default empty line)=
 -FileName=
  FileName: Options=
  FileName: Tag=5
 -Line=
  Line: Options=
  Line: Tag=6
 -Column=
  Column: Options=
  Column: Tag=
 -Message=
  Message: Options=
  Message: Tag=0
User Macro=
------------------------------------------------------------------------------

6. For C++ syntax highlight:

-Use default TSE c.syn

-Computer: Editor: Text: TSE: Syntax: Highlight: Language: Computer: C++: File: Source: c.txt

7. Create a file helloworld.cpp (case insensitive) in TSE and compile it from TSE (e.g. <CTRL><F9>)

#include <stdio.h>
//
void main() {
 printf( "hello world" );
}
}

8. That will show

hello world

9. Tested successfully in
   Microsoft Windows Professional 10
   TSE version 4.42

See also:

Contents of TSE's compile.hlp file


Reply all
Reply to author
Forward
0 new messages