FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5930 Discussions

Directives define in Nios II development compiler settings

Altera_Forum
Honored Contributor II
995 Views

Hi, 

 

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

 

thank you, 

OnePlusOne
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
262 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
262 Views

Philipp, 

Thank you.
0 Kudos
Altera_Forum
Honored Contributor II
262 Views

Ok 

I will try to give you an advice
0 Kudos
Reply