vcl.h: No such file or directory

蹲街弑〆低调 提交于 2019-11-30 20:41:30

问题


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

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.


回答1:


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.

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.




回答2:


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

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).

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



来源:https://stackoverflow.com/questions/3441281/vcl-h-no-such-file-or-directory

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