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

坚强是说给别人听的谎言 提交于 2019-12-23 10:52:51

问题


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.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/3974992/how-to-create-a-project-in-turbo-c-16-bit-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!