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

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%


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
5.5k1060
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×637
×7

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