genie.exe produces a Solution and Visual Studio can't build it - c++

I use genie.exe to build a Visual Studio solution, but when I right-click on a file to compile it, this error occurs:
Error C1083 Cannot open compiler generated file: 'C:\path-to-desktop\vs2015_genie\obj\x32\Debug\test\source\bgfx\debugview.obj': No such file or directory
When I create the needed subfolders by hand, Visual Studio can build the .obj file. But why doesn't generate Visual Studio the needed folders automatically?

Related

visual studio error e1696 -"cannot open source file iostream"

When I build a cmake project in visual studio and this error occurs, I tried to uninstall and reinstall visual studio but it did not work.
the Build succeeded and the program ran but in error list I got the error "cannot open source file "iostream"".
I use the visual studio 2022 program.
enter image description here

errors building glut dll with visual studio 2013

I have upgraded visual studio from 2010 to 2013. I've downloaded GLUT source code distribution from here. In the instructions,
To build the glut dll:
First, open Microsoft Developer Studio.
Then, select File -> Open Workspace and find the glut.dsw file
in the file dialog and double-click on it.
Finally, select Build -> Build glut32.dll.
When the build is finished, it will copy:
glut32.dll to %WinDir%\System,
glut32.lib to $(MSDevDir)\..\..\VC98\lib, and
glut.h to $(MSDevDir)\..\..\VC98\include\GL.
There is no folder named VC98. GL folder is located in
C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl
As a result, I can't build glut.dll. It throws out the following message
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "copy C:\Users\XXX\Desktop\glut-3.7.6\lib\glut\Debug\glut32.dll %WINDIR%\SYSTEM32
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: copy C:\Users\XXX\Desktop\glut-3.7.6\lib\glut\Debug\glut32.lib "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\..\..\VC98\lib"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: copy ..\..\include\GL\glut.h "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\..\..\VC98\include\GL"
How can I build glut dll successfully?
Those error messages are caused by a Post-Build Event.
You can safely ignore these.
You will find the dlls in glut-3.7.6\lib\glut\ under Debug and Release.

fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory

How to solve this problem.
This problem appear when I run one of my codes which I had written.
I use visual studio 2010 ultimate to write the code
in the options dialog you can tell vs where to look for include files. Look for
Projects and solutions>VC++ Directories
file location : C:\Program Files\Microsoft Visual Studio 11.0\VC\crt\src
if you don't find, may be re-install VS2012

Visual Studio 2010 Cannot Open VC++ Include Files

really struggling with a Visual Studio issue here. I get a bunch of errors from Visual Studio after having re-installed it, about it not being able to find VC++ libraries:
Error 1 error C1083: Cannot open include file: 'stdlib.h': No such
file or directory
Error 2 error C1083: Cannot open include file:
'sys/types.h': No such file or directory
Error 3 error C1083: Cannot open include file: 'stdio.h': No such file
or directory
Error 4 error C1083: Cannot open include file: 'stdlib.h': No such
file or directory
Error 5 error C1083: Cannot open include file:
sys/types.h': No such file or directory
Any ideas how I can resolve this issue? I just did a search for stdlib.h in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC and I didn't find anything. What will repopulate my libraries?
Its a dirty solution, but it works: Copying these files over from another computer with these files on it for this version of Visual Studio seems to have worked.
The exact error I received was:
error C1083: Cannot Open include file <stdio.h>
Since I had three versions of VS on my computer, I decided to check whether all versions had this file in their install folders. I discovered that VS 2010 (VC 10.0) did not, and yet I had opened my project in VS 2010.
I opened my project in VS 2012 (VC 11.0). VS 2012 prompted me to "update" the project from an older version of VS to a newer one. I clicked OK. The update was successful. I then compiled my project. And the error was gone.
I was curious to find out if stdio.h actually existed in the install location for VS 2012. And indeed it did at: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\crt\src\stdio.h. Thus, it appears that upon installing multiple versions of VS, my stdio.h file somehow vanished from my older VS 2010 installation. Am not quite sure about this theory, though.

Qt Visual Studio 2008 Add-in problem

I have Qt 2009.05 and Qt VS Add-in 1.1.3 installed on my computer with Visual Studio 2008. When I create simple Qt Application and build it, I'm receiveing this error.
1>LINK : fatal error LNK1181: cannot open input file 'qtmain.lib'
When I searched whole disk this file to add in Visual Studio library include variable, I doesn't find. I have qtmain.prl in my qt/lib directory but not qtmain.lib...
Your qt\lib directory should contain all the lib files. You have probably downloaded qt source package but you haven't built it. Download pre-built version for Visual Studio from here.