Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22313

When creating a new tool collection in Netbeans, why is it not autofilling Code Assistance properties?

$
0
0

Introduction

I'm helping a developer colleague to set up a cross compiler toolchain in Netbeans 8.2 for the Nano-PI board.

We both installed the toolchain following the instructions in this link.

Since we use NetBeans 8.2 (in Ubuntu Linux) as IDE, we added this toolchain to the tool collection, via the Tool > Options menu.

In my machine, when I put the path to each GCC tool in the Build Tools tab, if I switch to the Code Assistance tab, the list for Include Directories and Macro Definitions are automatically filled by Netbeans. The two pictures below show my configuration. I didn't need to add any of the directories in the second picture, it was filled automatically.My Build Tools optionsMy Code Assistance options

The problem

The problem we're facing is that in my colleague machine, the Code Assistance options are not being auto filled, leading to missing files errors in code assistance.

I can easily export my settings and send to him for Import in his machine (we did this, in fact, to speed things up), but I want to know why this happens and how to make Netbeans fill these options automatically. I also want to understand how Netbeans knows what directories and macro definitions to create, since the same feature works for the other tool collections I have in my machine.

Troubleshooting

I searched the web trying to find a solution, but all I could find is people with Code assistance problems due to this configuration being empty, and the solution is to manually fill them. What I want is to make Netbeans fill it automatically, like in my machine.

I also tried to go step by step in both machines at the same time. After filling C Compiler in my machine, the Code Assistance options are filled in my machine, but not in my colleague's. We checked other options in this Windows and they seem to match in both machines.

I also kind of suspect of some missing libraries needed by gcc in my colleague's machine, since this was an issue we had previously, although GCC is now able to tell its version (--version works now). This may or may not affect the issue depending on the answer to my second question.

Questions

  1. What Netbeans options may influence this autofilling behavior? Why the Code assistance autofill is not working? How to enable it?
  2. How Netbeans knows what to put in code assistance Include Directories and Macro Definitions? Is it a Netbeans internal feature or something Netbeans pass to gcc to get from it?

Viewing all articles
Browse latest Browse all 22313

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>