错误C2447:'{':缺少函数头(旧式正式列表?)

时间:2012-05-03 01:48:50

标签: c++

我从layers_id_colors_and_visibility.h复制的代码有什么问题?

error C2447: '{' : missing function header (old-style formal list?)
error C2017: illegal escape sequence
error C2017: illegal escape sequence
error C2017: illegal escape sequence
error C2017: illegal escape sequence
error C2017: illegal escape sequence
#define DECLARE_LAYERS_ORDER_LIST(list) int list[LAYER_COUNT] =\
{   LAYER_N_FRONT,\
    LAYER_N_15, LAYER_N_14, LAYER_N_13, LAYER_N_12,\
    LAYER_N_11, LAYER_N_10, LAYER_N_9, LAYER_N_8,\
    LAYER_N_7, LAYER_N_6, LAYER_N_5, LAYER_N_4,\
    LAYER_N_3, LAYER_N_2,\
    LAYER_N_BACK,\
    ADHESIVE_N_FRONT , ADHESIVE_N_BACK,\
    SOLDERPASTE_N_FRONT, SOLDERPASTE_N_BACK,\
    SILKSCREEN_N_FRONT, SILKSCREEN_N_BACK,\
    SOLDERMASK_N_FRONT, SOLDERMASK_N_BACK,\
    DRAW_N,\
    COMMENT_N,\
    ECO1_N, ECO2_N,\
    EDGE_N,\
    UNUSED_LAYER_29, UNUSED_LAYER_30, UNUSED_LAYER_31\
};

1 个答案:

答案 0 :(得分:2)

非法转义序列错误让我觉得在一个或多个反斜杠的右边可能有空格。

现在已经解决了..

谢谢所有..