Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
797 Views

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
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
64 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
Altera_Forum
Honored Contributor I
64 Views

Philipp, 

Thank you.
Altera_Forum
Honored Contributor I
64 Views

Ok 

I will try to give you an advice
Reply