#10

Here's the code
PHP код:
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include <iostream>
using namespace std;
int main()
{
    
cout << "Fuck me daddy" << endl;
    
cout << "I eat ass" << endl;
    return 
0;

And here's the error
PHP код:
1>------ Build startedProjectConsoleApplication1ConfigurationDebug Win32 ------
1>stdafx.cpp
1
>ConsoleApplication1.cpp
1
>c:\users\gamerz.exe\documents\visual studio 2017\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(16): fatal error C1010unexpected end of file while looking for precompiled headerDid you forget to add '#include "stdafx.h"' to your source?
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(358,5): error MSB6006"CL.exe" exited with code 2.
1
>Done building project "ConsoleApplication1.vcxproj" -- FAILED.
========== 
Build0 succeeded1 failed0 up-to-date0 skipped ========== 
EDIT: I added #include "stdafx.h" to the top of the code and then it worked for exactly half a second and then the CMD box closed here's what i got

PHP код:
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\GamerZ.Exe\Documents\Visual Studio 2017\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-timezone-l1-1-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l2-1-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-localization-l1-2-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-synch-l1-2-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-processthreads-l1-1-1.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l1-2-0.dll'Cannot find or open the PDB file.
The program '[5548] ConsoleApplication1.exe' has exited with code 0 (0x0). 
Reply


Messages In This Thread
C++ - by XBrianX - 23.04.2017, 23:39
Re: C++ - by CJ101 - 24.04.2017, 00:04
Re: C++ - by XBrianX - 24.04.2017, 00:22
Re: C++ - by XBrianX - 24.04.2017, 00:27
Re: C++ - by ]Kurence[ - 24.04.2017, 01:19
Re: C++ - by SyS - 24.04.2017, 01:30
Re: C++ - by SniperZLyfe1 - 24.04.2017, 01:34
Re: C++ - by XBrianX - 24.04.2017, 01:46
Re: C++ - by SyS - 24.04.2017, 01:54
Re: C++ - by XBrianX - 24.04.2017, 02:42
Re: C++ - by ]Kurence[ - 24.04.2017, 02:56
Re: C++ - by XBrianX - 24.04.2017, 03:01
Re: C++ - by jlalt - 24.04.2017, 04:11
Re: C++ - by XBrianX - 24.04.2017, 06:36
Re: C++ - by XBrianX - 24.04.2017, 06:42
Re: C++ - by jlalt - 24.04.2017, 06:50
Re: C++ - by XBrianX - 24.04.2017, 07:02
Re: C++ - by Freaksken - 26.04.2017, 14:55
Re: C++ - by rolex - 27.04.2017, 20:50
Re: C++ - by Eoussama - 27.04.2017, 22:02

Forum Jump:


Users browsing this thread: 1 Guest(s)