Click here to Skip to main content
15,913,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

What is the problem in this code


What does it mean ???

I have copied this code from 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

--------------------------------------------------------

C#
#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\
};
Posted
Comments
Mohibur Rashid 2-May-12 22:13pm    
did you copy the define macros of LAYER_N_FRONT....?
Pixel86 2-May-12 23:27pm    
yeah i did ..the problem was leaving Whitespaces after \ ..i directly copied from the code and pasted it ,,
Mohibur Rashid 2-May-12 23:48pm    
so, its fixed

1 solution

Resolved by OP. This is to pop it out it out of unanswered list. It was a copy-paste error. Extra space was the issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900