1
System / Re: Fail to Build Project
« on: May 02, 2024, 03:58:48 pm »
I've checked tutorial again and there was no mistakes.
Build gave me this:
Build started...
1>------ Build started: Project: yes2, Configuration: Debug Win32 ------
1>Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30146 for x86
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /c /I"D:\SFML\SFML-2.6.1\include" /ZI /JMC /W3 /WX- /diagnostics:column /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /external:W3 /Gd /TP /analyze- /FC /errorReport:prompt Source.cpp
1>Source.cpp
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(32,15): warning C4244: 'argument': conversion from 'time_t' to 'unsigned int', possible loss of data
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(75,67): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(99,47): warning C4244: 'argument': conversion from 'const int' to 'float', possible loss of data
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(99,35): warning C4244: 'argument': conversion from 'const int' to 'float', possible loss of data
1>Microsoft (R) Incremental Linker Version 14.29.30146.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>"/OUT:C:\Users\artio\source\repos\yes2\Debug\yes2.exe" /INCREMENTAL "/ILK:Debug\yes2.ilk" "/LIBPATH:D:\SFML\SFML-2.6.1\lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:C:\Users\artio\source\repos\yes2\Debug\yes2.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:\Users\artio\source\repos\yes2\Debug\yes2.lib" /MACHINE:X86 Debug\Source.obj
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
1>Done building project "yes2.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Build gave me this:
Build started...
1>------ Build started: Project: yes2, Configuration: Debug Win32 ------
1>Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30146 for x86
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /c /I"D:\SFML\SFML-2.6.1\include" /ZI /JMC /W3 /WX- /diagnostics:column /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /external:W3 /Gd /TP /analyze- /FC /errorReport:prompt Source.cpp
1>Source.cpp
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(32,15): warning C4244: 'argument': conversion from 'time_t' to 'unsigned int', possible loss of data
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(75,67): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(99,47): warning C4244: 'argument': conversion from 'const int' to 'float', possible loss of data
1>C:\Users\artio\source\repos\yes2\yes2\Source.cpp(99,35): warning C4244: 'argument': conversion from 'const int' to 'float', possible loss of data
1>Microsoft (R) Incremental Linker Version 14.29.30146.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>"/OUT:C:\Users\artio\source\repos\yes2\Debug\yes2.exe" /INCREMENTAL "/ILK:Debug\yes2.ilk" "/LIBPATH:D:\SFML\SFML-2.6.1\lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:C:\Users\artio\source\repos\yes2\Debug\yes2.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:\Users\artio\source\repos\yes2\Debug\yes2.lib" /MACHINE:X86 Debug\Source.obj
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
1>Done building project "yes2.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========