Forum Discussion
Altera_Forum
Honored Contributor
21 years agoManaged Libraries
I am running into a bit of a problem with the Managed Libraries. I have existing common code that I am trying to build into a library. But this code uses the types defined in alt_types.h. So, sinc...
Altera_Forum
Honored Contributor
19 years agoHas this been reported as a bug to Altera? Paolo.gai's post is from 15 months ago, yet we also just encountered this problem still in NIOS 6.0SP1.
It's amusing what goes wrong. When GTF_GENERATED is undefined the buggy line introduces a "-I" with no directory argument suffix. GCC then interprets this as an include directive using its space-separated syntax, and gobbles the the next valid -I<alteralib> directive as gibberish, thus removing the valid library path that ought to have been included. I'm always loath to modify the system files for fear of breaking on the next upgrade, so we've worked around this problem by predefining GTF_GENERATED as ".".