Hi. Some strange problem I got by trying to use VCC4N. Plugin installed and then I have to choose Microsoft Visual Studio directory, but Netbeans (or the plugin) does not accept any directory: neither VS installation directory, nor its settings directory. What exactly directory should I give him? I have VS2013. Sorry if this is a stupid question.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. The plugin won't let you choose a folder if it doesn't find the compiler cl.exe, but you can select either the VS install directory or the {VS install}\VC or {VS install}\VC\bin
If you still can't, you can edit the msvc_caller.conf file and add the correct bin folder in vcbin= e.g.
vcbin=D:\Dev\Visual Studio Express RTM 2013\VC\bin
What version of NetBeans are you using?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for response. I was giving installation directory. I fixed it and that problem is gone. But now I do not know haw to give him additional include directories. I guess there must be a syntactic trick, because normal windows directory syntax failed as well as cygwin directory syntax. I'm using vs2013.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are difficulties at giving additional include directories. One has to use the netbeans project property dialog window to set up compiler additional include directories. This is good for IDE itself to find the input file but not for compiler. For compiler one has to use compiler additional options. Unfortunately these options are passed to linker as well, and if linker ignores them - program is compiled, if not, this or that error message appears. Would be really wanted to able to give option separately to cl.exe and link.exe.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The includes have to be added in the compiler options "include header" or "include directories" not in additional options.
The additional options are indeed shared between the compiler and linker, that's a bug in the Makefile generation of Netbeans, but it shouldn't cause any problem and will just be ignored by the linker. Use the include options and it will just work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In my case, adding includes in the compiler options "include header" or "include directories" only helps to be able to open and edit those includes in netbeans editor, but compiler complains about not found header, for example:
Include Directories S:/services/ControlSystem/xAppsZN/controls/bin/lib/include
Include Headers S:/services/ControlSystem/xAppsZN/controls/bin/lib/include/tine.h
from compiler:
v:\develop\bagrat\doocs.git\programs\arcusdmx\TineServer.h(21) : fatal error C1083: Cannot open include file: 'tine.h': No such file or directory
When I add in additional options this:
-IS:/services/ControlSystem/xAppsZN/controls/bin/lib/include
then
BUILD SUCCESSFUL (total time: 8s)
no problem any more.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi. Some strange problem I got by trying to use VCC4N. Plugin installed and then I have to choose Microsoft Visual Studio directory, but Netbeans (or the plugin) does not accept any directory: neither VS installation directory, nor its settings directory. What exactly directory should I give him? I have VS2013. Sorry if this is a stupid question.
Hi. The plugin won't let you choose a folder if it doesn't find the compiler cl.exe, but you can select either the VS install directory or the {VS install}\VC or {VS install}\VC\bin
If you still can't, you can edit the msvc_caller.conf file and add the correct bin folder in vcbin= e.g.
vcbin=D:\Dev\Visual Studio Express RTM 2013\VC\bin
What version of NetBeans are you using?
Thanks for response. I was giving installation directory. I fixed it and that problem is gone. But now I do not know haw to give him additional include directories. I guess there must be a syntactic trick, because normal windows directory syntax failed as well as cygwin directory syntax. I'm using vs2013.
There are difficulties at giving additional include directories. One has to use the netbeans project property dialog window to set up compiler additional include directories. This is good for IDE itself to find the input file but not for compiler. For compiler one has to use compiler additional options. Unfortunately these options are passed to linker as well, and if linker ignores them - program is compiled, if not, this or that error message appears. Would be really wanted to able to give option separately to cl.exe and link.exe.
The includes have to be added in the compiler options "include header" or "include directories" not in additional options.
The additional options are indeed shared between the compiler and linker, that's a bug in the Makefile generation of Netbeans, but it shouldn't cause any problem and will just be ignored by the linker. Use the include options and it will just work.
In my case, adding includes in the compiler options "include header" or "include directories" only helps to be able to open and edit those includes in netbeans editor, but compiler complains about not found header, for example:
Include Directories S:/services/ControlSystem/xAppsZN/controls/bin/lib/include
Include Headers S:/services/ControlSystem/xAppsZN/controls/bin/lib/include/tine.h
from compiler:
v:\develop\bagrat\doocs.git\programs\arcusdmx\TineServer.h(21) : fatal error C1083: Cannot open include file: 'tine.h': No such file or directory
When I add in additional options this:
-IS:/services/ControlSystem/xAppsZN/controls/bin/lib/include
then
BUILD SUCCESSFUL (total time: 8s)
no problem any more.
Can you set "verbose = true" in the msvc_caller.conf file and give me the output of the msvc_caller command line used in both cases?