This is our old Q&A Site. Please post any new questions and answers at

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

accept rate: 50%

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

permanent link

answered 14 Dec '16, 10:11

Pascal%20Quantin's gravatar image

Pascal Quantin
accept rate: 30%

Thanks a lot :)

(16 Dec '16, 00:49) xaheen
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Dec '16, 08:59

question was seen: 1,316 times

last updated: 16 Dec '16, 00:49

p​o​w​e​r​e​d by O​S​Q​A