vcl.h:没有这样的文件或目录
我想在Visual C ++中编译一些旧的源代码。但是,我收到的许多错误中的第一个是:
I'm looking to compile some old source code in Visual C++. However, the first of many errors I am receiving is:
vcl.h: No such file or directory
这看起来是对Visual Component库的引用,原来是Borland编译器。我下载了免费的Borland C ++ 5.5命令行编译器,但它的include目录中似乎不包含vlc.h。
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.
如何解决我的问题?非常感谢。
How can I resolve my issue? Many thanks.
这个旧代码必须来自C ++ Builder。如果它实际上使用VCL,你将无法使用任何其他编译器来构建它。如果有其他VCL包括像classes.hpp,system.hpp,controls.hpp等它正在使用VCL。
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.
如果它是一个控制台应用程序,并且实际上使用任何VCL类,那么你可以删除include,但机会很小。
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.