Compiling Multi-File Project in Turbo C++

2019-08-04 11:55发布

I have written a project for a friend in Visual Studio, containing bunch of .h and .cpp files. Now I want to compile my code in Turbo C++ and when I compile the main function the following error occurs:

unable to open include file 'blah.h'

How can I compile my multi-file project in Turbo C++?

I haven't written a line in Turbo C++ in my life! So any help would be appreciated.

标签: c++ turbo-c++
1条回答
Lonely孤独者°
2楼-- · 2019-08-04 12:26

From the menubar, select the Project menu, then New Project. The name you give the project in 'Project Path and Name' will by default be the name that the executable file will have. If you want a different name for the executable file, enter that name in the 'Target' field. By default the .cpp file with the same name will be added to the list of source files. In the example in the last section, if the project is given the name trial, then the executable file will be trial.exe and the source code file trial.cpp will automatically be included in the list of files to be compiled. Before pressing the OK button, you should select the 'Easywin' target option, and also press the 'Application Expert' button, and clear the check marks against the .def and .rc files. Once the project is set up, you can add other source files to the list of those that need to be compiled by either using the 'Add node' button (which has an icon, but no text), or by dragging the source file with the mouse from the ordinary Windows File Manager and releasing the mouse button over the representation of the target (in this case trial.exe) in the project.

For more information take a look at the following link: http://dybfin.wustl.edu/willard/turbohlp.html

查看更多
登录 后发表回答