System.Types.hpp(77): E2029 'TObject' must be a previously defined class or struct

System.Types.hpp

System.Types.hpp(77): E2029 'TObject' must be a previously defined class or struct

class PASCALIMPLEMENTATION TBitConverter : public System::TObject
{
    typedef System::TObject inherited;

工程文件a.cbproj

<PropertyGroup Condition="'$(Base)'!=''">

<IncludePath>frm;$(IncludePath)</IncludePath>

有这句就报错,没有就不报错。

排查完毕,原来是Frm文件夹里有个time.cpp,time.h与系统文件冲突了,修改文件名后正常。

原文地址:https://www.cnblogs.com/cb168/p/5600590.html