This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

error C2017: illegal escape sequence

0

Compilor is showing "error C2017: illegal escape sequence" to this part of my code.(It's inside Header file and showing error everywhere this macro is being called).

 #define PROTO_TREE_ADD_HEADER( ife_tree, ife_command, element_start, element_length, proto_item_ti )                                         \
    proto_tree *sub_tree = proto_tree_add_subtree_format(ife_tree, tvb, element_start, ife_numberOfElements*(element_length),             \
    ett_cidsifecmd_tree, &proto_item_ti, " %s ( %u entries ) ", try_val_to_str( (ife_command),command_name_var ),ife_numberOfElements      \
    );

what could be the reason? thanks

asked 14 Dec '16, 08:59

xaheen's gravatar image

xaheen
71141519
accept rate: 50%


One Answer:

1

Ensure that you have no trailing space or tab after the \ character.

answered 14 Dec '16, 10:11

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

Thanks a lot :)

(16 Dec '16, 00:49) xaheen