Forum Discussion

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

#include into HAL library

Hello.

I have my project NIOSII in the following form (window C/C++ Projets):

+--+-- Nios II Device Drivers

| +---- altera_avalon_asmi

| +---- etc

| +---- .......... altera_avalon_to_be_modify.c

| +---- etc

|

+--+-- MyProject

| +---- MyFile.h

| +---- MyFile.c

| +---- etc

|

+--+-- MyProject_syslib

+---- etc

How to simply include the file 'MyFile.h' from the disc X: to the file 'altera_avalon_to_be_modify.c' on the disc Y: (same project), ie without including all the path as follows :

# include "X:/...complete_path.../MyFile.h"

Best regards.

bbo

1 Reply

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

    I don't know if you can copy it there as a son file of the ....modify.c.