Does the standard "Hello world" program compile with your current setup?
#include <iostream>
int main()
{
std::cout << "Hello world";
return 0;
}
Here is the full command line log:
||=== ExtraLife, Debug ===|
LINK||warning LNK4044: unrecognized option '/EHsc'; ignored|
sprig.lib(d000017.o)||warning LNK4078: multiple '.text' sections found with different attributes (E0300020)|
sdlmain.lib(SDL_win32_main.obj)||warning LNK4217: locally defined symbol _isspace imported in function _ParseCommandLine|
sdlmain.lib(SDL_win32_main.obj)||warning LNK4217: locally defined symbol ___iob_func imported in function _ShowError|
sdlmain.lib(SDL_win32_main.obj)||warning LNK4217: locally defined symbol _fclose imported in function _cleanup_output|
sdlmain.lib(SDL_win32_main.obj)||warning LNK4217: locally defined symbol _exit imported in function _main|
sdlmain.lib(SDL_win32_main.obj)||warning LNK4217: locally defined symbol _atoi imported in function _WinMain@16|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__fprintf referenced in function _ShowError|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__remove referenced in function _cleanup_output|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__fopen referenced in function _cleanup_output|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__fgetc referenced in function _cleanup_output|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__setbuf referenced in function _redirect_output|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__setvbuf referenced in function _redirect_output|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__freopen referenced in function _redirect_output|
sdlmain.lib(SDL_win32_main.obj)||error LNK2019: unresolved external symbol __imp__strrchr referenced in function _main|
bin\Debug\ExtraLife.exe||fatal error LNK1120: 8 unresolved externals|
||=== Build finished: 9 errors, 7 warnings ===|
and btw, here are the linker settings for the project:
sdl.lib
sdlmain.lib
sprig.lib
I took the .lib extension off of them all (project and compiler settings), but the errors are the same.
Edit: Unbelievable! I added #include <cstdio> to the main.cpp file and it now links! (fopen is in stdio.h), however it crashes once it runs.