• Declaration terminated incorrectly 讨厌 这样就不可以了


    #include "vcl.fctreeview.hpp"
    #include "RM_Class.hpp"
    #include "RM_Common.hpp"

    这样可以

    #include "RM_Class.hpp"
    #include "RM_Common.hpp"
    #include "vcl.fctreeview.hpp"

    这样就不可以了

    17error

    [bcc32 Error] vcl.fccanvas.hpp(34): E2184 Enum syntax error
    [bcc32 Error] vcl.fccanvas.hpp(34): E2040 Declaration terminated incorrectly
    [bcc32 Error] vcl.fccanvas.hpp(36): E2451 Undefined symbol 'TwwRectSide'
    [bcc32 Error] vcl.fccanvas.hpp(36): E2090 Qualifier 'TwwRectSide' is not a class or namespace name
    [bcc32 Error] vcl.fccanvas.hpp(36): E2401 Invalid template argument list
    [bcc32 Error] vcl.fccanvas.hpp(36): E2270 > expected
    [bcc32 Error] vcl.fccanvas.hpp(36): E2040 Declaration terminated incorrectly
    [bcc32 Error] vcl.fccanvas.hpp(69): E2190 Unexpected }
    [bcc32 Error] vcl.fccanvas.hpp(70): E2190 Unexpected }
    [bcc32 Error] vcl.fctreeview.hpp(438): E2316 'TfcCanvas' is not a member of 'Fccanvas'
    [bcc32 Error] vcl.fctreeview.hpp(438): E2040 Declaration terminated incorrectly
    [bcc32 Error] vcl.fctreeview.hpp(439): E2316 'TfcCanvas' is not a member of 'Fccanvas'
    [bcc32 Error] vcl.fctreeview.hpp(439): E2040 Declaration terminated incorrectly
    [bcc32 Error] vcl.fctreeview.hpp(558): E2316 'TfcCanvas' is not a member of 'Fccanvas'
    [bcc32 Error] vcl.fctreeview.hpp(558): E2040 Declaration terminated incorrectly
    [bcc32 Error] vcl.fctreeview.hpp(678): E2316 'TfcCanvas' is not a member of 'Fccanvas'
    [bcc32 Error] vcl.fctreeview.hpp(678): E2040 Declaration terminated incorrectly

    找到代码

    [bcc32 Error] vcl.fccanvas.hpp(34): E2184 Enum syntax error

    enum DECLSPEC_DENUM TwwRectSide : unsigned char { rsLeft, rsTop, rsRight, rsBottom };

    找谁了,惹谁了!!冲突了

    Berlin,a project

    [bcc32 Error] System.ZLib.hpp(310): E2040 Declaration terminated incorrectly

    extern DELPHI_PACKAGE char *ZLIB_VERSION; //注释掉得了

    发现是单元文件包含了头文件

    #include <Vcl.Imaging.pngimage.hpp>

    就报错了,但是新建一个空白工程,包含此投文件不报错。这个头文件里包括了#include <System.ZLib.hpp>

  • 相关阅读:
    给“file”类型的input框赋值的问题
    bootstrap-paginator分页插件的两种使用方式
    开发中使用UEditor编辑器的注意事项
    java图形界面设计
    ArrayList 、LinkList区别以及速度对比
    java中的ArrayList 、List、LinkedList、Collection关系详解
    Josephus问题的不同实现方法与总结
    浅谈JAVA中字符串常量的储存位置
    linux安装vmware出现Gtk-Message: Failed to load module pk-gtk-module canberra-gtk-module的解决方法
    ubuntu安装搜狗输入法的相关问题
  • 原文地址:https://www.cnblogs.com/cb168/p/4173957.html
Copyright © 2020-2023  润新知