Re: Trouble with file access permission in a C++ projet

2022-01-30 Thread Bradley Willcott
The following was copied from my previous email responce on this type of 
problem:


NB: Tools -> Plugins -> Settings:
Activate: Netbeans 8.2 Plugin Portal

Switch to -> Updates:
Click on: [Check for Updates]

Switch to -> Available Plugins:
Install: "C/C++" plugin

Hope this helps.
Brad.

*(**/Gj - Would it be possible to set-up this info somewhere to avoid me 
having to repeat it?/**)*


On 28/1/22 07:47, slipbits wrote:

Hi;

I tried to place the path to my compiler in
Windows->Files->->Properties->Editor->Compile 
Commands ["C:\cygwin64\bin\c++.exe"]

with no good effect.

Same for Windows->Files->->Properties->Build->Run.

Tools->Options->C/C++ only allows entry of the path to ccls or clangd.

It is clear I don't know what I'm doing. Is there some documentation 
on this, or a tutorial, or something. I hate to waste your time in 
describing something I should be able to do myself. I just don't know 
what the secret sauce is, and I'm sure you're getting pretty 
frustrated with me.


Sorrowful;
art

On 1/27/2022 12:02 AM, antonio wrote:

Hi,

In my box CYGWIN\lib\gcc\x86_64-pc-cygwin\10\include\c++ is a 
directory, so of course NetBeans is not able to "execute" it.


It seems you're missing the path to the compiler you want to use. In 
my box this is "CYGWIN\bin\c++.exe".


Cheers,
Antonio

On 26/01/2022 22:18, slipbits wrote:

NB Diagnostic Message
 Exception in thread "main" java.io.IOException: Cannot run 
program "C:\cygwin64\lib\gcc\x86_64-pc-cygwin\11\include\c++": 
CreateProcess error=5, Access is denied


-
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





Re: Trouble with file access permission in a C++ projet

2022-01-27 Thread antonio

Hi,

As far as I know, in cpplite the "compile commands" are the exact 
command(s?) you want to use to compile your stuff.


Something like (*):

C:\cygwin64\bin\c++.exe -g -I\cygwin64\whatever\include myfile.c main.c 
another.c -o myfile


The "run command" would then be:

".\myfile"

And the "clean command" would be

"del myfile"

(Can't tell if you need to use double slashes in Windows, for instance 
".\\myfile" instead of ".\myfile", that's something you'll have to 
experiment yourself).


These are very basic commands, we'll have to wait until cnd is ready to 
merge to recover the Makefile projects.


Cheers,
Antonio

(*)
I don't know if cpplite admits multiple commands, like:

C:\cygwin64\bin\c++.exe -c -g myfile.c -o myfile.o
C:\cygwin64\bin\c++.exe -c -g b.c -o b.o
C:\cygwin64\bin\c++.exe myfile.o b.o -Lwhatever -o myfile



El 28/1/22 a las 0:47, slipbits escribió:

I tried to place the path to my compiler in
Windows->Files->->Properties->Editor->Compile 
Commands ["C:\cygwin64\bin\c++.exe"]

with no good effect.


-
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



Re: Trouble with file access permission in a C++ projet

2022-01-27 Thread slipbits

Hi;

I tried to place the path to my compiler in
Windows->Files->->Properties->Editor->Compile 
Commands ["C:\cygwin64\bin\c++.exe"]

with no good effect.

Same for Windows->Files->->Properties->Build->Run.

Tools->Options->C/C++ only allows entry of the path to ccls or clangd.

It is clear I don't know what I'm doing. Is there some documentation on 
this, or a tutorial, or something. I hate to waste your time in 
describing something I should be able to do myself. I just don't know 
what the secret sauce is, and I'm sure you're getting pretty frustrated 
with me.


Sorrowful;
art

On 1/27/2022 12:02 AM, antonio wrote:

Hi,

In my box CYGWIN\lib\gcc\x86_64-pc-cygwin\10\include\c++ is a 
directory, so of course NetBeans is not able to "execute" it.


It seems you're missing the path to the compiler you want to use. In 
my box this is "CYGWIN\bin\c++.exe".


Cheers,
Antonio

On 26/01/2022 22:18, slipbits wrote:

NB Diagnostic Message
 Exception in thread "main" java.io.IOException: Cannot run 
program "C:\cygwin64\lib\gcc\x86_64-pc-cygwin\11\include\c++": 
CreateProcess error=5, Access is denied


-
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



Re: Trouble with file access permission in a C++ projet

2022-01-27 Thread antonio

Hi,

In my box CYGWIN\lib\gcc\x86_64-pc-cygwin\10\include\c++ is a directory, 
so of course NetBeans is not able to "execute" it.


It seems you're missing the path to the compiler you want to use. In my 
box this is "CYGWIN\bin\c++.exe".


Cheers,
Antonio

On 26/01/2022 22:18, slipbits wrote:

NB Diagnostic Message
     Exception in thread "main" java.io.IOException: Cannot run program 
"C:\cygwin64\lib\gcc\x86_64-pc-cygwin\11\include\c++": CreateProcess 
error=5, Access is denied


-
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