Re: Trouble with file access permission in a C++ projet
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
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
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
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
Trouble with file access permission in a C++ projet
NB 12.6 Win7-64 I'm trying to get C++ up an running. I think I've got everything set up correctly but I get an access violation at build time. I've checked all of the security permission on the path for my account, and in each directory I see that in the Security Property pop-up I have no permissions, but when I try to change the permissions, it says I have Full Control and all permissions are available. I think the problem is that I have all the permissions, which allows me to do changes in the directories on the path, but somehow these permissions are not public for NB to see, or, I just don't understand the problem. Does anyone have an idea how to fix this? Win7 Security dialog (in Windows Explorer) right-click: Properties->Security Permissions for nothing right-click: Properties->Security->Advanced->Change Permissions->Edit all permissions granted 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 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) at org.netbeans.modules.cpplite.project.runner.Runner.main(Runner.java:35) Caused by: java.io.IOException: CreateProcess error=5, Access is denied at java.base/java.lang.ProcessImpl.create(Native Method) at java.base/java.lang.ProcessImpl.(ProcessImpl.java:494) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:159) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) ... 2 more - 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