I'm doing a project in c++ using Visual Studio 2013. My friend put it into BitBucket, I downloaded it using SourceTree. Now I cant compile it:
1> controller.cpp
1>c1xx : fatal error C1083: Cannot open source file: 'controller.cpp': No such file or directory
Same thing about all classes. I tried to remove it, import again, add in "Additional Include Directories". Still doesn't work. Any ideas why?V
Related
I downloaded this project's files which is written in visual studio and I am trying to make it compile in Code Blocks. The issue I am having, is with the StdAfx.h/.c files, which if I understand this correctly, are used for Visual studio.
So the error is:
fatal error: afxwin.h: No such file or directory
I get this error inside AtdAfx.h file, because it tried to include it:
#include <afxwin.h> // MFC core and standard components
If I try to delete the AtdAfx.h, my other project's files give me errors, since evey one of them uses the AtdAfx.h.
Side note:
This is the exact error I have Fatal error c1083 "afxwin.h" but he/she uses Visual studio, I use Code::Blocks.
On one of our servers pgAgent service does not start with the message "ERROR: Couldn't register event handle" (see DBA Question). So I decided to compile the binary from the source, to further investigate the problem.
I installed Visual Studio Community 2017 Edition. I downloaded pgagent source code 3.4.0 and extracted to F:\pgbuild\pgAgent-3.4.0. I downloaded the wxWidgets 2.8, unpacked into F:\pgbuild\wxWidgets and built with visual studio 2017. I pointed out the these variables
wxMSW=F:\pgbuild\wxWidgets
WXWIN=F:\pgbuild\wxWidgets
PGDIR=C:\Program Files\PostgreSQL\9.6
WIX=C:\Program Files (x86)\WiX Toolset v3.11\
Then I tried to compile the pgAgent. Visual studio could recognize the CMake Project of it. When I compile the cmake project, I get an error:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: '../../../lib/vc_lib/mswd/wx/setup.h': No such file or directory F:\pgbuild\pgAgent-3.4.0\CMakeLists.txt F:\pgbuild\wxWidgets\include\msvc\wx\setup.h 123
There are lots of urls around the problem on the net, but I cannot get a handle on it.
It looks to me that this code needs to be updated:
#ifdef wxSUFFIX
#define wxSETUPH_PATH \
wxCONCAT6(../../../lib/, wxLIB_SUBDIR, /, wxTOOLKIT_PREFIX, wxSUFFIX, /wx/setup.h)
#else // suffix is empty
#define wxSETUPH_PATH \
wxCONCAT5(../../../lib/, wxLIB_SUBDIR, /, wxTOOLKIT_PREFIX, /wx/setup.h)
#endif
I built wxWidgets using wx_vc15.sln in F:\pgbuild\wxWidgets\build\msw. I was trying to build pgAgent as CMake project, although the building instructions say that I need to use the GUI version of CMake.
I was following instructions to build pgAdmin, but now I am wondering whether I need to build pgAdmin (don't mix it up vs. pgAgent) at all.
Any suggestions how?
Update:
I installed CMake for Windows and created a solution file to F:/pgbuild/pgAgent-3.4.0/build. Got some errors lines back:
Then clicked on configure, then on gnerate. This created the visual studio project file. Tried to build it, got the error above (wx/setup.h: No such file or directory). The exact error is
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: '../../../lib/vc_dll/mswd/wx/setup.h': No such file or directory pgagent f:\pgbuild\wxwidgets\include\msvc\wx\setup.h 123
I am working with ARToolKit 5.3.3 trying to build from source. I am getting the following errors when building the simpleOSG example application:
error C1083: Cannot open include file: 'DSVL.h': No such file or
directory
error C1083: Cannot open include file: 'GL/glext.h': No such file or
directory
error C1083: Cannot open include file: 'GL/glut.h': No such file or
directory
error C1083: Cannot open include file: 'jpeglib.h': No such file or
directory
error C1083: Cannot open include file: 'osg/Config': No such file or
directory
error C1083: Cannot open include file: 'pthread.h': No such file or
directory
error C1083: Cannot open include file: 'qedit.h': No such file or
directory
The clone from Github is placed on C:/. I have no idea why these files are missing, when building from source on my Mac I have no issues with this. Any help would be greatly appreciated.
ARToolKit 5.3.3, Windows 10, Visual Studio 2013
Third-party dependencies are not kept in the ARToolKit GitHub repository. To satisfy the missing dependencies you listed, you will need DSVideoLib, GLUT, libjpeg, OpenSceneGraph, pthreads-win32, and the DirectShow SDK.
The easiest way to obtain these is to copy them directly from one of the packaged binary ARToolKit SDKs.
Otherwise, you have a bit of work to do to download and build each dependency.
I'm attempting to migrate a solution file from VS 2005 to VS 2013. The majority of the projects within the solutions rebuilt just fine.
However, some of the projects are coming up with the error:
error LINK1104: cannot open file 'mfc80.lib'
I have searched for mfc80.lib on my computer and it does not exist.
I cannot follow the solution from here fatal error LNK1104: cannot open file 'gdi32.lib' because the file does not exist, therefore I cannot add its path in "Additional Library Directories".
I have:
Deleted all the .obj and .lib files for the problematic project
Ensured Visual C++ MFC MBCS Library for Visual Studio 2013 is installed
Followed Error LNK1104 cannot open file ';.obj'
What else do I need to check?
Thanks.
It appears your project is attempting to include mfc80.lib explicitly. This is the version that VS2005 used; you need mfc120.lib.
Also, double-check that none of your source has a declaration like the following: #define _MFC_FILENAME_VER
I'm migrating a VC++ 06 project to Visual Studio 2012.
I got an error when I compile.
1> Copying contents file...
1> the specified file is not found
1> Making help include file...
1> Making help file...
1> The system cannot find the file hcw.
1>hlp\MyProject.hpj(1): error :
1> the specified file is not found
I removed the folder hlp (it got the .hpj file), the Makefile (.mak) but it still want to reach it.
Why? How can I build my project without HTML Help Project?
I follow this but it doesn't work.
I found the solution.
I edit the .dsp file (VC++ 6 Project) and remove the HTML Help lines declaration.
When I add an existing project from the .dsp, it automatically load that configuration. Even if I deleted the Makefile or the hlp folder.
you should open the .dsw file with new version visual studio, before building the project, open the vxcproj and find the custom-build for help (search the "hjp" word)
delete this part from vxcproj and compile the Project.