Unresolved external symbol _RTC_InitBase
Unresolved external symbol _RTC_Shutdown
-> Settings/C/C++/Code Generation/Basic Runtime Checks => Default
Unresolved external symbol __chkstk
-> Settings/C/C++/Command Line/Additional Options: /Gs0x100000
-> Settings/Linker/System/Stack Reserve Size => 0x100000
-> Settings/Linker/System/Stack Commit Size => 0x100000
Unresolved external symbol __imp___acrt_iob_func
Unresolved external symbol __imp___stdio_common_vfprintf
-> #define _NO_CRT_STDIO_INLINE
-> #include <stdio.h>
Unresolved external symbol _fltused
-> insert in the top of the code: extern "C" int _fltused = 0;
Unresolved external symbol __security_check_cookie
-> Settings/C/C++/Code Generation/Security Check => Disable Security Check (/GS-)
Visual Studio quirk:
Your own libraries should be on front of the Library Directories: So, $(SolutionDir)extern;$(SolutionDir)extern\sdl2\lib; $(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64)
Do this with all your directories, libraries. Put them in front of the rest.
If you "ignore all default libraries" in the link input. You must then change the main function in:
int mainCRTStartup(void) --> console subsystem
int WINAPI WinMainCRTStartup(HINSTANCE hInstance, HINSTANCE prevInstance, LPWSTR cmd, int nCmdShow) --> windows subsystem
If you want to copy your compiled .exe file, create a custom post-build event and fill in the following commandline: copy /y "$(OutDir)Ground.exe" "$(ProjectDir)..\..\GroundOutput\Ground.exe"
Ofcourse, you can also set the outdir in de General properties of the project.
Geen opmerkingen:
Een reactie posten