Compile cat mario - c++

When I compile the game by using Visual Studio 2010, it shows error LNK1104: cannot open file 'DxLib.lib'. I already follow the directX documentation for C++ to set up the this game compilation project.
Why it shows this error? What kind of stuffs I lacks and make it cannot compile?
Here is the download link.
https://www.dropbox.com/s/8v34imehmwvzsvv/cat%20mario.zip
Here are is the compiler output:
1>------ Build started: Project: cat mario, Configuration: Debug Win32 ------
1>Build started 12/5/2013 10:38:24 PM.
1>InitializeBuildStatus:
1> Touching "Debug\cat mario.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'DxLib.lib'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.17
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Seems like build path is not correct, or DxLib.lib is corrupted (not sure about this, though), or you're just missing this library. Try to compile with /LIBPATH:path_to_your_lib_folder.

Related

I cannot open source file clang64.exe and a crtdbg.h Error?

Build started...
1>------ Build started: Project: ConsoleApplication6, Configuration: Debug x64 ------
1>clang64.exe
1>c1xx : fatal error C1083: Cannot open source file: 'C:\msys64\clang64.exe': No such file or directory
1>ConsoleApplication6.cpp
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\yvals.h(12,10): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory
1>Generating Code...`enter code here`
1>Done building project "ConsoleApplication6.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Is there a way to not call on msys64? I've already set up all the Windows SDK files, so I don't know what else I'm doing wrong.
I often get this error when I forget to close the executable. Check if it's open. If not, look in the Task Manager. That fixed it when I had this problem

Visual C++ Cross platform build failure

I just installed VS Community 2015 and after creating a OpenGLES application (Android/iOS) and building it, I've got an error message
1>------ Build started: Project: OpenGLESApp2.Android.Packaging, Configuration: Debug ARM ------
1> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1> ANT_HOME=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\
1> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25
1> java.home=C:\Program Files (x86)\Java\jre1.8.0_91
1> NDK_ROOT=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c\
1> ANDROID_NDK_HOME=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c\
1> The system cannot find the path specified.
1>C:\Program Files (x86)\MSBuild\Microsoft\MDD\Android\V140\Android.Common.targets(378,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\\bin\ant.bat" debug -Dout.final.file="C:\Users\Me\documents\visual studio 2015\Projects\OpenGLESApp2\OpenGLESApp2\OpenGLESApp2.Android.Packaging\ARM\Debug\OpenGLESApp2.apk"" exited with code 3.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
Also I noticed that there is no bin folder in "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\
How can I get rid of this error?

Microsoft visual studio: Cannot find file specified

Hi I have been having problems with Microsoft VS.
When I try to run simple code such as:
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "hello" << endl;
return 0;
}
I get an error message saying:
"Unable to start program 'C:\elevator\Debug\elevator.exe'.'
the system cannot find the file specified"
This message has been coming up for a long time. I do not believe it's any problem with my code. My program will be compiling fine then all of a sudden this error will come up without me even changing the code. I have tried uninstalling and re installing VS which didn't work. I have also spent a long time searching Google for the solution to no avail.
This is the output I get when trying to run the above code:
1>------ Build started: Project: elevator, Configuration: Debug Win32 ------
1>Build started 26/02/2014 14:49:21.
1>InitializeBuildStatus:
1> Touching "Debug\elevator.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.20
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Maybe you have an anti-virus that detects your new program as problematic, and puts it to quarantine as soon as it is compiled.
I think I've found a solution for some C++ projects in vs2010. If you are using 'incremental linking' you will have this "fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt". In my case I've swiched it to "No", and now project compiles and run without any problem.
If you want to try go to: Project Properties -> Configuration Properties -> Linker (General) -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
about "Incremental Linking": http://msdn.microsoft.com/en-us/library/4khtbfyf(v=vs.100).aspx

VC ++ express, how do I fix this error?

I have experience programming in C#, but I'm taking a C++ class this semester, and I'm writing my second project, but I keep getting this error when I try to build a debug configuration of my program.
My build log is below, any ideas on what's going on? I'm at a loss.
Thanks everyone!
1>------ Rebuild All started: Project: Project_2, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'Project_2', configuration 'Debug|Win32'
1>Compiling...
1>main.cpp
1>Linking...
1>LINK : C:\Users\Alex\Documents\Visual Studio 2008\Projects\Project_2\Debug\Project_2.exe not found or not built by the last incremental link; performing full link
1>Embedding manifest...
1>Project : error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.
1>Build log was saved at "file://c:\Users\Alex\Documents\Visual Studio 2008\Projects\Project_2\Project_2\Debug\BuildLog.htm"
1>Project_2 - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Microsoft blames antivirus for a similar case.
You should look at the buildlog.htm file that is given in the build output. It will give you more (useful) information about what has happened.
try setting your AV to ignore your project directories instead of VC++ directory.
Project : error PRJ0002 : Error result 31 returned from 'C:\Program
Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.
Faced the same issue Cleaning the rebuilding solved it.
I turned off the Microsoft Security Essentials and the problem is gone.
Strange that it only happened for the debug configuration.

C++ Compilation Problems with Microsoft Visual Studios 2010 Beta 1

Well, I just got the new MSVS 2010 Beta 1, and just like with 2008 express, I just can't figure out how to compile anything, not even a simple hello world program. Anyone have any pointers? I usually just get a blanket fail message. No real information.
Edit: Sorry about that
#include <iostream>
using namespace std;
main()
{
cout << "hello world";
return 0;
}
I go to build and I get:
1>------ Build started: Project: forkicks, Configuration: Debug Win32 ------
1>Embedding manifest...
1>.\Debug\forkicks.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
1>Build log was saved at "file://c:\Users\Randy\Documents\Visual Studio 2008\Projects\forkicks\forkicks\Debug\BuildLog.htm"
1>forkicks - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
That is 2008
1>------ Build started: Project: For Kicks, Configuration: Debug Win32 ------
1>Build started 7/22/2009 9:36:39 PM.
1>_PrepareForBuild:
1> Creating directory "Debug\".
1> Creating "Debug\lastbuild.timestamp" because "AlwaysCreate" was specified.
1>ClCompile:
1> main.cpp
1>c:\users\randy\documents\visual studio 10\projects\for kicks\main.cpp(5): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.63
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
is 2010. I create a win32 project, name it, etc. Right click on source file, add a C++ file with no headers or anything. Just a blank document.
New 2010:
1>------ Build started: Project: hoyeah, Configuration: Debug Win32 ------
1>Build started 7/22/2009 10:03:35 PM.
1>_PrepareForBuild:
1> Creating directory "Debug\".
1> Creating "Debug\lastbuild.timestamp" because "AlwaysCreate" was specified.
1>PrepareForBuild:
1> Creating directory "C:\Users\Randy\Desktop\C++ Programs\hoyeah\Debug\".
1>ClCompile:
1> test.cpp
1>ManifestResourceCompile:
1> Microsoft (R) Windows (R) Resource Compiler Version 6.1.7000.0
1>
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1>
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain#16 referenced in function ___tmainCRTStartup
1>C:\Users\Randy\Desktop\C++ Programs\hoyeah\Debug\hoyeah.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.25
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Edit #2. How exactly would I go about changing it to multibyte?
That's a well known problem with VS10 Beta. You need to change the default encoding to Multibyte from Unicode to make it work.
int main() maybe ?
Try also changing the destination of the project to something simpler and not that long since I believe I also had the same error when the destination was too long.
Also did you choose a console application when creating the project?
If that didn't help, google gave this as possible answers too :
"You could try going to your
project's Properties > Configuration
Properties > Manifest Tool > Input
and Output, and set your "Embed
Manifest" option to "No"."
"I had a similar problem like this a
few months ago and I solved it by
going to project -> properties ->
Configuration Properties -> General
-> Character set. Under character set I changed it to Use Multi-Byte
Character Set and then my compliment
issue went away."
Edit:
In regard to the latest error link here directly from microsoft. I'm afraid that from this point on it's google time as I'm all out of ideas if it doesn't work.
The link says : "As a workaround for Beta1 you can change the entry point to use "wmain" instead of "main" or change the character set of your project to use "Multi-Byte Character Set""
Easiest would be to just change the name of main to wmain then.
Ok, I got it to compile using a win32 console ap, changing to Multibyte, and using the following code:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}
Now to try to figure something else out. I'm not used to VS so...
Thanks everyone.