vcl。h:没有这样的文件或目录

时间:2023-02-07 09:39:27

I'm looking to compile some old source code in Visual C++. However, the first of many errors I am receiving is:

我希望在Visual c++中编译一些旧的源代码。然而,我收到的第一个错误是:

vcl.h: No such file or directory

This appears to be in reference to the Visual Component Library, native to Borland compilers it seems. I downloaded the free Borland C++ 5.5 command line compiler, but it doesn't seem to contain a vlc.h in its include directory.

这似乎是对Visual Component库的引用,它似乎是Borland编译器的原生版本。我下载了免费的Borland c++ 5.5命令行编译器,但它似乎不包含vlc。h在它的include目录中。

How can I resolve my issue? Many thanks.

我如何解决我的问题?多谢。

2 个解决方案

#1


2  

This old code must have come from C++Builder. If it actually uses the VCL, you won't be able to build it with any other compiler. If there are other VCL includes like classes.hpp, system.hpp, controls.hpp, etc. it is using the VCL.

这个旧代码一定来自c++ Builder。如果它实际使用VCL,您将无法与任何其他编译器一起构建它。如果有其他VCL包含类。高压泵,系统。高压泵,控制。hpp等使用VCL。

If it is a console application and doesn't actually use any VCL classes, then you can probably just remove the include, but the chances are slim.

如果它是一个控制台应用程序,并且实际上不使用任何VCL类,那么您可能只需删除include,但可能性很小。

#2


0  

Borland C++ 5.5 and C++ Builder are two different products.

Borland c++ 5.5和c++ Builder是两个不同的产品。

The VCL components are in the C++ Builder product and can't be compiled with Borland C++ 5.5 which is a pure C/C++ compiler (I think OWL is included there).

VCL组件在c++ Builder产品中,不能使用Borland c++ 5.5编译,Borland c++ 5.5是一个纯粹的C/ c++编译器(我认为OWL包含在其中)。

So you have to get your hands on C++ Builder to be able to compile it.

因此,您必须接触c++ Builder,才能编译它。

#1


2  

This old code must have come from C++Builder. If it actually uses the VCL, you won't be able to build it with any other compiler. If there are other VCL includes like classes.hpp, system.hpp, controls.hpp, etc. it is using the VCL.

这个旧代码一定来自c++ Builder。如果它实际使用VCL,您将无法与任何其他编译器一起构建它。如果有其他VCL包含类。高压泵,系统。高压泵,控制。hpp等使用VCL。

If it is a console application and doesn't actually use any VCL classes, then you can probably just remove the include, but the chances are slim.

如果它是一个控制台应用程序,并且实际上不使用任何VCL类,那么您可能只需删除include,但可能性很小。

#2


0  

Borland C++ 5.5 and C++ Builder are two different products.

Borland c++ 5.5和c++ Builder是两个不同的产品。

The VCL components are in the C++ Builder product and can't be compiled with Borland C++ 5.5 which is a pure C/C++ compiler (I think OWL is included there).

VCL组件在c++ Builder产品中,不能使用Borland c++ 5.5编译,Borland c++ 5.5是一个纯粹的C/ c++编译器(我认为OWL包含在其中)。

So you have to get your hands on C++ Builder to be able to compile it.

因此,您必须接触c++ Builder,才能编译它。