hello everyone
i really need a help i am facing a problem with convert my p4 code to a json file
every time i’m getting a different problem
haider@haider:~/Desktop/p4-l2-switch-project$ p4c -I /usr/local/share/p4c/p4include --target bmv2 --arch v1model l2_learning_switch.p4 -o l2_learning_switch.json
l2_learning_switch.p4(31): [–Werror=not-found] error: standard_metadata: declaration not found
standard_metadata.egress_spec = port;
^^^^^^^^^^^^^^^^^
l2_learning_switch.p4(38): [–Werror=not-found] error: standard_metadata: declaration not found
standard_metadata.egress_spec = port;
^^^^^^^^^^^^^^^^^
l2_learning_switch.p4(51): [–Werror=not-found] error: _drop: declaration not found
_drop;
^^^^^
haider@haider:~/Desktop/p4-l2-switch-project$