2

I need to add a .msg file to my project. The .msg code is :

import inet.common.INETDefs;
import inet.common.packet.chunk.Chunk;
import inet.networklayer.contract.ipv4.Ipv4Address;

namespace inet;

class HelloMsg extends FieldsChunk
{
    Ipv4Address srcAddress; 
    unsigned int sequencenumber;
    int hopdistance; 
}

When I build my project, I get this error:

syntax error, unexpected NAME, expecting $end.

Jerzy D.
  • 6,707
  • 2
  • 16
  • 22
  • 1
    Possible duplicate. Take a look at [Try to create new project with INET reference, got : “unexpected NAME, expecting $end” in .msg file](https://stackoverflow.com/questions/56005709/try-to-create-new-project-with-inet-reference-got-unexpected-name-expecting) – Jerzy D. May 21 '19 at 09:35
  • Thank you, the solution in the link you post solved my problem. – Bouchra BOUNAB May 21 '19 at 09:39
  • You are welcome. You may vote up the solution that helps you - it helps others find the best answer. – Jerzy D. May 21 '19 at 09:44
  • I did, thanks again. – Bouchra BOUNAB May 21 '19 at 10:00

0 Answers0