FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5239 Discussions

Directives define in Nios II development compiler settings

Altera_Forum
Honored Contributor II
852 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
119 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 II
119 Views

Philipp, 

Thank you.
Altera_Forum
Honored Contributor II
119 Views

Ok 

I will try to give you an advice
Reply