Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Directives define in Nios II development compiler settings

Hi,

In Nios II development tool, where to define compiler directives, such as # define DHCP_SERVER

thank you,

OnePlusOne

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Which Version do you use?

    NIOS 10.0 EDS: you can set it under properties->nios ii application properties.

    There is a field called defined symbols.

    Put there "-d<symbol to define>" for example "-ddhcp_server".

    NIOS IDE 8.1:

    Go to properties->c/c++ build and then choose the tab tool settings. Select Preprocessor and add your define under defined symbols.

    Regards,

    Philipp