# Error in using define for struct

**URL:** <https://verificationacademy.com/forums/t/error-in-using-define-for-struct/30989>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, define-struct\
**Created:** [August 30, 2015, 5:37pm UTC](https://verificationacademy.com/forums/t/error-in-using-define-for-struct/30989 "2015-08-30T17:37:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [August 30, 2015, 6:50pm UTC](https://verificationacademy.com/forums/t/error-in-using-define-for-struct/30989/2 "2015-08-30T18:50:08Z")

</div>

Please use SystemVerilog tags around your code(I added them for you), and I assume line 8 was

```verilog
`dps p3;

```

It would have helped if you pointed that out.

The reason for the syntax error is the extra semicolon at the end of your \*\*`define dps**. The becomes part of the text replaced by `dps.

---

_[View the full topic](https://verificationacademy.com/forums/t/error-in-using-define-for-struct/30989)._
