[1] I am using the C/C++ plugin.
[2] NB 23 on Win11, NB 24 on Win10
[3] In NB I use backslash '\' as a delimiter, and <drive>: for paths. I
didn't know that there was an option to use anything but the NB supplied
shell inside NB.
Outside of NB I use cygwin bash.
In "Clean:" I use DEL, a Windows command, and it works. I don't know
what to use for "Editor:" since NB is an editor, so that has me stumped.
For "Build:" I use C:\<path>\g++.exe , and for "Run:" I use
<drive>:<path>\test.exe. Only the DEL works.
I do know about cygpath, thanks for the reminder.
The upshot is that I have now, most reluctantly, switched to Visual
Studio Code using MINGW. The Microsoft compiler is of really poor
quality, and by default appears to be non-standard. But, I would really,
really like to use NB.
thanks
art
On 2/22/2025 6:28 AM, Eric Bresie wrote:
I’m a little rusty so take with a grain of salt…
(1) Are using the C/C++ plugin?
(2) What version of Netbeans are you using?
(3) What shell are you using (I.e., Command prompt [DOS], Powershell,
or [Cygwin] bash shell)?
If I remember correctly, command prompt and power shell uses “\”,
while bash uses “/“ for path delimiters. Mixture in different shells
may cause some things to not be found correctly.
Cygwin does have cygpath command to help translate between formats
which may help.
Eric Bresie
ebre...@gmail.com
On Fri, Feb 21, 2025 at 4:37 PM slipbits <slipb...@slipbits.com> wrote:
Sorry to be a pest. When I know more I think I'll try to submit
something in writing for inclusion in the tutorials. But now, this is
what I've found, what I haven't found, and what I'm doing. I'm
sorry to
bother you, yet again.
I normally work in a cygwin environment. I have found that, as
expected,
Netbeans on my Windows machine, works in a Windows environment,
hence,
to get any cygwin commands working, I have to put cygwin into the
PATH
environment. No surprise there (to anyone but me).
I have found that windows commands work as expected, they are in the
Windows environment. No surprise there either.
The issue is that my compilers (gcc/g++) are in the cygwin
environment.
These are the issues I have in setting up my execution time
environment
(projects -> test -> Properties):
[1] In Editor: I'm not sure what to insert. I tried<path>\clangd.exe.
[2] In Build: C:\cygwin64\bin\g++.exe *.cpp yields a cc1plus
error in
not being able to find shared libraries. I thought that g++ knew
where
things are, go I have to put locations in PATH?
[3] In Clean: DEL works fine, but rm *.o 2> C:\cygwin64\dev\null dies
with can't find "2>" or C:\...
[4] In run: Haven't been able to compile. No sense trying to run.
run -> compile is shaded, so I can't compile a file.
In my cygwin environment, g++ *.cpp generates an executable.
My questions are:
What to put in the Editor: window?
Do I need to put in a path to the gcc/g++ include files into PATH?
Can I compile a file, or is that capability lost?
---------------------------------------------------------------------
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