开发者

how to create a project in turbo c++ 16 bit compiler

I want to create a project file turbo c++ and link the files in this project. Although i have tried for it but i开发者_高级运维 found only one option that to open a project no option to create a new project. So How to do that.


Basically, what you want to do, is to "Open Project". There, you type in a projects name. It must end with ".PRJ". When you open it, it will be created. Then you can add files to the project by pressing "Insert". But have a look at the links below.

In case these links disappear from the Internet, I add some redundant links. The first is the best, also cool is the hundreds of pages long Turbo C manual.

Graphical example with images!

Turbo C manual on Scribd

In Turbo C 2.01

Using projects in Turbo/Borland C++

Also, information about porting MSDOS Turbo C programs to Linux


If you use old Borland Turbo C++ (2.0 for DOS) project is text file with .PRJextension. You can open it like any text file (for example test.c) and write all your files into it. Each row contains one .c or .cpp file without extension followed by its header in parentheses. For example

mcalc (mcalc.h) 
mcparser (mcalc.h)
mcdisply (mcalc.h)

... Here mcalc.c has #include "mcalc.h" so that is why it is included in PRJ file. Other headers for example #include <stdio.h> are not included in .PRJ. Of course, if your .c has not any header written by you, .PRJ contains file name of your .c without additional parentheses.

After you create your PRJ, save it. In TC editor set project name (Project->Project name) using name of your .PRJ. And that's it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜