NB 12.5
Win-7-64
cygwin
gcc v11 installed under cygwin
clang v8.0.1 installed under cygwin
clangd v13.0.0 installed under Win-7
Hi (and sorry for being a pest);
I'm still having difficulty.
1. clang/clangd downloaded and installed. (no issue)
2. Tools->Option->C/C++->ccls configuration changed to clangd location.
(no issue)
3. Tools->Option->C/C++->code assistance->C++ Compiler changed to the
current location of the include libraries. (issue).
4. Compile fails to find <cstdlib>. I have verified that this file
exists and is in the C++ paths in Step 3.
5. Right click on <project name>->Build and found 4 entries;
Configuration Name, Build, Clean, and Run. All were empty. David
said to put the include directories here. Does this mean that the
include directories are inserted directly, as in Step 3 above, or
does the gcc build parameters have to be used. I have inserted all
of the directories in Step 3 into Build w/wo gcc link prefixes
without good effect.
6. What purpose does Step 3 have if the include files are not used in
the compile. I could understand that the Step 3 includes are for all
builds and the Step 5 includes are for project specific needs, but I
can't get either to work.
OK. What am I getting wrong. Are my assumptions incorrect (Step 3/6) or
is there something that I'm missing (probably), or both (most likely).
Do I have to install NB 12.6 (it's on my todo list so this really isn't
an issue).
thanks
art
=== code ===
#include <cstdlib>
int main(int argc, char* argv[]) {
exit (1);
}
On 1/18/2022 11:29 AM, slipbits wrote:
Thanks;
After I followed Bradley Willcott's directions I returned to
Tools->Options->C/C++ and found that it (now) contained linkages to
clang, not clangd. Before this change the C/C++ options where for ccls
and clangd, not clang. You are probably correct in that I downloaded
the indexer, but I think that NB should change to 'clangd' to 'clang'
to clear up any confusion, not to say that I won't continued to be
confused.
art
On 1/18/2022 9:33 AM, antonio wrote:
Hi there,
The "clangd for Windows" does not have any "clangd-index-server.exe",
nor "clangd-indexer.exe", just a "clangd.exe". You've probably
downloaded the indexer, not the clangd.
Just unzip clangd zip file somewhere in a directory in your disk. If
you have this directory in your PATH then NetBeans should find it for
you. Otherwise you'll have to add it manually (say
"C:\Users\whatever\clang\bin\clangd.exe).
Cheers,
Antonio
On 17/01/2022 22:17, slipbits wrote:
'm trying to host all my C/C++ projects on Netbeans (because I like
NB) and am having some difficulty. NB tools->options->C/C++ requires
either a ccls or clangd
<https://github.com/clangd/clangd/releases/tag/13.0.0>protocol
server. I downloaded clangd
<https://github.com/clangd/clangd/releases/tag/13.0.0> for windows
<https://github.com/clangd/clangd/releases/download/13.0.0/clangd-windows-13.0.0.zip>
as a zip file and then extracted clangd-index-server-monitor.exe,
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin
directory. Then, in turn, I changed the C/C++ "clangd Location" to
each of the files (/bin/<filename>). In all cases I was then unable
to modify my project file (below).
H
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists