VOGONS


First post, by Peter Swinkels

User metadata
Rank Member
Rank
Member

Okay, I downloaded and extracted dosbox-0.74-2.tar.gz and SDL2-devel-2.0.9-VC.zip. After that I:
1. open D:\dosbox-0.74-2\visualc_net\dosbox.sln in Microsoft Visual Studio 2019.
2. Allow Visual Studio to upgrade the project.
3. Notice that there are references to "SDL_lib.h" when attempting to build the project so I add an "addition include library" path under "project properties" to "../../SDL2-2.0.9/include".
4. This solves the issue but now there are about 200 errors:

Severity	Code	Description	Project	File	Line	Suppression State
Error C2065 'SDL_ASYNCBLIT': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 535
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2238 unexpected token(s) preceding ';' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 201
Error C2146 syntax error: missing ';' before identifier 'sdlkey_map' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 366
Error C2146 syntax error: missing ';' before identifier 'MapSDLCode' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 397
Error C2146 syntax error: missing ';' before identifier 'keystate' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1353
Error C2146 syntax error: missing ';' before identifier 'key' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2503
Error C2146 syntax error: missing ';' before identifier 'GetKeyCode' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 495
Error C2146 syntax error: missing ';' before identifier 'code' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 490
Error C2143 syntax error: missing ';' before '{' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 397
Error C2143 syntax error: missing ';' before '{' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 404
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 201
Error C2143 syntax error: missing ';' before '*' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1160
Error C2146 syntax error: missing ')' before identifier 'keysym' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 404
Error C2146 syntax error: missing ')' before identifier 'GetKeyCode' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 495
Error C2146 syntax error: missing ')' before identifier 'code' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 490
Error C2061 syntax error: identifier 'SDLKey' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 460
Error C2061 syntax error: identifier 'SDLKey' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 506
Error C2059 syntax error: ')' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 490
Error C2059 syntax error: ')' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 495
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 201
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1160
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 366
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 397
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 470
Error (active) E0020 identifier "SDL_CD" is undefined dosbox D:\dosbox-0.74-2\src\dos\cdrom.h 86
Error C1003 error count exceeds 100; stopping compilation dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1484
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\include\ipx.h 74
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\include\ipxserver.h 24
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'png.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\hardware.cpp 35
Error C2447 '{': missing function header (old-style formal list?) dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 397
Error C2447 '{': missing function header (old-style formal list?) dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 404
Error C2065 '_key': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 461
Error C2065 '_key': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 507
Show last 257 lines
Error	C2065	'_key': undeclared identifier	dosbox	D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp	508	
Error C2065 'vidinfo': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1160
Error C2065 'vidinfo': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1161
Error C2065 'vidinfo': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1162
Error C2065 'vidinfo': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1163
Warning C4473 'sprintf' : not enough arguments passed for format string dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 464
Error C3861 'SDL_WM_SetIcon': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 316
Error C3861 'SDL_WM_SetCaption': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 300
Error C3861 'SDL_WM_SetCaption': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1269
Error C3861 'SDL_WM_GrabInput': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 761
Error C3861 'SDL_WM_GrabInput': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 764
Error C3861 'SDL_VideoModeOK': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 385
Error C2065 'SDL_UYVY_OVERLAY': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 643
Error C3861 'SDL_UpdateRects': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 888
Error C3861 'SDL_UnlockYUVOverlay': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 912
Error C2065 'SDL_SRCALPHA': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1320
Error C2065 'SDL_SRCALPHA': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1326
Error C2660 'SDL_SetVideoMode_Wrap': function does not take 3 arguments dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 533
Error C2660 'SDL_SetVideoMode_Wrap': function does not take 3 arguments dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 539
Error C2660 'SDL_SetVideoMode_Wrap': function does not take 3 arguments dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 547
Error C3861 'SDL_SetVideoMode': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 270
Error C3861 'SDL_SetPalette': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 956
Error C3861 'SDL_SetPalette': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 960
Error C3861 'SDL_SetPalette': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2329
Error C3861 'SDL_SetAlpha': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1320
Error C3861 'SDL_SetAlpha': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1326
Error C2065 'SDL_PHYSPAL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 956
Error C2065 'SDL_PHYSPAL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2329
Error C2065 'SDL_OPENGL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 237
Error C2065 'SDL_OPENGL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 259
Error C2065 'SDL_OPENGL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 265
Error C2065 'SDL_OPENGL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 671
Error C2065 'SDL_OPENGL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1231
Error C2065 'SDL_LOGPAL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 960
Error C2065 'SDL_LOGPAL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2329
Error C3861 'SDL_LockYUVOverlay': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 826
Error C2065 'SDL_keysym': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 404
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 385
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 461
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 465
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 534
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 540
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 547
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 562
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 584
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 587
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 608
Error C2065 'SDL_HWSURFACE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 614
Error C2065 'SDL_HWPALETTE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 385
Error C2065 'SDL_HWPALETTE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 535
Error C2065 'SDL_HWPALETTE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 541
Error C2065 'SDL_HWPALETTE': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 955
Error C2065 'SDL_GRAB_ON': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 761
Error C2065 'SDL_GRAB_OFF': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 764
Error C2065 'SDL_GL_SWAP_CONTROL': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 669
Error C3861 'SDL_GL_SwapBuffers': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 242
Error C3861 'SDL_GL_SwapBuffers': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 713
Error C3861 'SDL_GL_SwapBuffers': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 925
Error C3861 'SDL_GL_SwapBuffers': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 943
Error C3861 'SDL_GetVideoInfo': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1160
Error C2065 'SDL_FULLSCREEN': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 259
Error C2065 'SDL_FULLSCREEN': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 385
Error C2065 'SDL_FULLSCREEN': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 461
Error C2065 'SDL_FULLSCREEN': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 485
Error C2065 'SDL_FULLSCREEN': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 534
Error C2065 'SDL_FULLSCREEN': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 540
Error C3861 'SDL_FreeYUVOverlay': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 638
Error C3861 'SDL_Flip': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 866
Error C3861 'SDL_Flip': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 908
Error C3861 'SDL_Flip': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1322
Error C3861 'SDL_Flip': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1328
Error C3861 'SDL_Flip': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1336
Error C3861 'SDL_Flip': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 1674
Error C2065 'SDL_DOUBLEBUF': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 535
Error C2065 'SDL_DOUBLEBUF': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 541
Error C2065 'SDL_DOUBLEBUF': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 586
Error C2065 'SDL_DOUBLEBUF': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 603
Error C3861 'SDL_DisplayYUVOverlay': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 913
Error C3861 'SDL_CreateYUVOverlay': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 643
Error C3861 'SDL_CDStop': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 138
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 55
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 64
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 74
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 79
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 83
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 87
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 91
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 98
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 102
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 106
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 110
Error C3861 'SDL_CDStatus': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 115
Error C3861 'SDL_CDResume': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 129
Error C3861 'SDL_CDPlay': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 123
Error C3861 'SDL_CDPause': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 130
Error C3861 'SDL_CDOpen': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 54
Error C3861 'SDL_CDOpen': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 63
Error C3861 'SDL_CDOpen': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 122
Error C3861 'SDL_CDOpen': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 137
Error C3861 'SDL_CDNumDrives': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 51
Error C3861 'SDL_CDNumDrives': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 161
Error C3861 'SDL_CDNumDrives': identifier not found dosbox D:\dosbox-0.74-2\src\dos\dos_programs.cpp 176
Error C3861 'SDL_CDName': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 61
Error C3861 'SDL_CDName': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 170
Error C3861 'SDL_CDName': identifier not found dosbox D:\dosbox-0.74-2\src\dos\dos_programs.cpp 179
Error C3861 'SDL_CDEject': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 143
Error C3861 'SDL_CDClose': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 42
Error C3861 'SDL_CDClose': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 121
Error C3861 'SDL_CDClose': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 136
Error C2065 'SDL_ASYNCBLIT': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 541
Error C2065 'SDL_APPINPUTFOCUS': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1454
Error C2065 'SDL_ACTIVEEVENT': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1453
Error C2065 'SDLMod': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1353
Error C2065 'SDLK_SCROLLOCK': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 380
Error C2065 'SDLK_SCROLLOCK': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 1579
Error C2065 'SDLK_SCROLLOCK': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2036
Error C2065 'SDLK_PRINT': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 1585
Error C2065 'SDLK_PRINT': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2035
Error C2065 'SDLK_PRINT': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2496
Error C2065 'SDLK_NUMLOCK': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 380
Error C2065 'SDLK_NUMLOCK': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2042
Error C2065 'SDLK_LAST': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2246
Error C2065 'SDLK_KP9': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 381
Error C2065 'SDLK_KP9': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2042
Error C2065 'SDLK_KP8': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 381
Error C2065 'SDLK_KP8': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2042
Error C2065 'SDLK_KP7': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 381
Error C2065 'SDLK_KP7': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2041
Error C2065 'SDLK_KP6': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 381
Error C2065 'SDLK_KP6': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2041
Error C2065 'SDLK_KP5': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 381
Error C2065 'SDLK_KP5': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2041
Error C2065 'SDLK_KP4': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 381
Error C2065 'SDLK_KP4': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2041
Error C2065 'SDLK_KP3': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 382
Error C2065 'SDLK_KP3': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2040
Error C2065 'SDLK_KP2': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 382
Error C2065 'SDLK_KP2': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2040
Error C2065 'SDLK_KP1': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 382
Error C2065 'SDLK_KP1': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2040
Error C2065 'SDLK_KP0': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 382
Error C2065 'SDLK_KP0': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2040
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 637
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 638
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 639
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 643
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 644
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 826
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 827
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 828
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 912
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 913
Error C2039 'overlay': is not a member of 'SDL_Block' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1228
Error C3861 'MSF_TO_FRAMES': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_image.cpp 659
Error C3861 'MSF_TO_FRAMES': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 164
Error C3861 'MSF_TO_FRAMES': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 217
Error C3861 'MSF_TO_FRAMES': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 257
Error C3861 'MSF_TO_FRAMES': identifier not found dosbox D:\dosbox-0.74-2\src\dos\dos_mscdex.cpp 878
Error C3861 'MapSDLCode': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 464
Error C3861 'MapSDLCode': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 467
Error C2065 'keystate': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1353
Error C2065 'keystate': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1354
Error C2065 'keystate': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1355
Error C3646 'key': unknown override specifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 470
Error C2065 'key': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 461
Error C2065 'key': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 464
Error C2065 'key': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 467
Error C2065 'key': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2503
Error C2065 'key': undeclared identifier dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 2504
Error C2086 'int SDLKey': redefinition dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 397
Warning C4244 'initializing': conversion from 'double' to 'float', possible loss of data dosbox D:\dosbox-0.74-2\src\hardware\pcspeaker.cpp 282
Error C2039 'hwdata': is not a member of 'SDL_Surface' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 897
Error C2039 'hwdata': is not a member of 'SDL_Surface' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 902
Error C2039 'hwdata': is not a member of 'SDL_Surface' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 903
Error C3861 'GetKeyCode': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 495
Error C3861 'GetKeyCode': identifier not found dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 499
Warning C4731 'gen_runcode': frame pointer register 'ebp' modified by inline assembly code dosbox D:\dosbox-0.74-2\src\cpu\core_dyn_x86\risc_x86.h 111
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 77
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 84
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 95
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 96
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_image.cpp 189
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_image.cpp 196
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_image.cpp 208
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_image.cpp 209
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 94
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 97
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 271
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 272
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 280
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 317
Error C3861 'FRAMES_TO_MSF': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom_ioctl_win32.cpp 322
Error C2664 'const char *SDL_JoystickName(SDL_Joystick *)': cannot convert argument 1 from 'Bitu' to 'SDL_Joystick *' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 659
Error C2664 'const char *SDL_JoystickName(SDL_Joystick *)': cannot convert argument 1 from 'Bitu' to 'SDL_Joystick *' dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 865
Error C2660 'CKeyBindGroup::CreateKeyBind': function does not take 1 arguments dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 490
Error C2660 'CKeyBindGroup::CreateKeyBind': function does not take 1 arguments dosbox D:\dosbox-0.74-2\src\gui\sdl_mapper.cpp 495
Error C2065 'CD_TRAYEMPTY': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 111
Error C2065 'CD_PLAYING': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 103
Error C2065 'CD_PAUSED': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 104
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 74
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 79
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 83
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 87
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 91
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 98
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 102
Error C3861 'CD_INDRIVE': identifier not found dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 106
Error C2065 'CD_ERROR': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 111
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 37
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 42
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 43
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 54
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 55
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 63
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 64
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 74
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 76
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 77
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 79
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 83
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 84
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 85
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 87
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 91
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 92
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 93
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 94
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 95
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 96
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 98
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 102
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 103
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 104
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 106
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 110
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 111
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 112
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 114
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 115
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 121
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 122
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 123
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 129
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 130
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 136
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 137
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 138
Error C2065 'cd': undeclared identifier dosbox D:\dosbox-0.74-2\src\dos\cdrom.cpp 143
Error C2039 'active': is not a member of 'SDL_Event' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1454
Error C2039 'active': is not a member of 'SDL_Event' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1455
Error C2039 'active': is not a member of 'SDL_Event' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1484
Warning C4309 '=': truncation of constant value dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1417
Warning C4309 '=': truncation of constant value dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1418
Warning C4305 '=': truncation from 'SDL_EventType' to 'Bit8u' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1417
Warning C4305 '=': truncation from 'SDL_EventType' to 'Bit8u' dosbox D:\dosbox-0.74-2\src\gui\sdlmain.cpp 1418
Warning C4018 '<': signed/unsigned mismatch dosbox D:\dosbox-0.74-2\src\dos\drive_cache.cpp 452

I have also tried following the steps described at: https://www.dosbox.com/wiki/Building_DOSBox_w … h_Visual_Studio. Same result.

Anyone had issues like these before? What do I do about them?

Reply 2 of 11, by Peter Swinkels

User metadata
Rank Member
Rank
Member
Qbix wrote:

you need SDL1.2 not SDL2

Thank you, that helped. Now I have 20 errors:

Severity	Code	Description	Project	File	Line	Suppression State
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\include\ipxserver.h 24
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\include\ipx.h 74
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'SDL_net.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\serialport\misc_util.h 62
Error C1083 Cannot open include file: 'png.h': No such file or directory dosbox D:\dosbox-0.74-2\src\hardware\hardware.cpp 35
Error (active) E0020 identifier "UDPsocket" is undefined dosbox D:\dosbox-0.74-2\src\hardware\ipx.cpp 56
Error (active) E0020 identifier "SDLNet_SocketSet" is undefined dosbox D:\dosbox-0.74-2\src\hardware\ipx.cpp 62
Error (active) E0020 identifier "IPaddress" is undefined dosbox D:\dosbox-0.74-2\include\ipx.h 154
Error (active) E0020 identifier "IPaddress" is undefined dosbox D:\dosbox-0.74-2\include\ipx.h 155
Error (active) E0020 identifier "IPaddress" is undefined dosbox D:\dosbox-0.74-2\include\ipxserver.h 42
Error (active) E0020 identifier "IPaddress" is undefined dosbox D:\dosbox-0.74-2\src\hardware\ipx.cpp 55
Error (active) E0020 identifier "IPaddress" is undefined dosbox D:\dosbox-0.74-2\src\hardware\ipx.cpp 73
Error (active) E0020 identifier "IPaddress" is undefined dosbox D:\dosbox-0.74-2\src\hardware\ipx.cpp 78
Error (active) E0020 identifier "IPaddress" is undefined dosbox D:\dosbox-0.74-2\src\hardware\ipx.cpp 510
Error (active) E1696 cannot open source file "SDL_net.h" dosbox D:\dosbox-0.74-2\include\ipx.h 74
Error (active) E1696 cannot open source file "SDL_net.h" dosbox D:\dosbox-0.74-2\include\ipxserver.h 24
Error (active) E1696 cannot open source file "SDL_net.h" dosbox D:\dosbox-0.74-2\src\hardware\ipx.cpp 41

What am I overlooking here?

Reply 3 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

getting sdl_net ?
that is a different library. (see the wiki page you linked. the optional library)

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 11, by Peter Swinkels

User metadata
Rank Member
Rank
Member
Qbix wrote:

getting sdl_net ?
that is a different library. (see the wiki page you linked. the optional library)

Severity	Code	Description	Project	File	Line	Suppression State
Error C1083 Cannot open include file: 'pnglibconf.h': No such file or directory dosbox D:\Other\DosBox\lpng1634\png.h 361

Seems, I missed a step involving the png image support library. Anyone?

Btw:
Thank you for the help QBix!

Reply 6 of 11, by Peter Swinkels

User metadata
Rank Member
Rank
Member
jmarsh wrote:

If you don't want/need the features that use these extra libraries you can just disable their defines in platform/visualc/config.h rather than hunting down dependencies.

Hi, thanks that seemed to have worked. Now I get this:

Severity	Code	Description	Project	File	Line	Suppression State
Error LNK1181 cannot open input file 'sdl_net.lib' dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\LINK 1

I checked, these files exist on my harddisk:
D:\Other\DosBox\SDL_net-1.2.8\lib\x64\SDL_net.lib
D:\Other\DosBox\SDL_net-1.2.8\lib\x86\SDL_net.lib

I also added them to "Additional Library Directories":
../../SDL_net-1.2.8/lib/x64/SDL_net.lib
../../SDL_net-1.2.8/lib/x86/SDL_net.lib

What gives?

Reply 8 of 11, by Peter Swinkels

User metadata
Rank Member
Rank
Member
jmarsh wrote:

"Additional library directories" should be paths to the directories that hold the libs, not the libs themselves.

I must be an idiot, now I get this:

Severity	Code	Description	Project	File	Line	Suppression State
Error LNK2019 unresolved external symbol __imp____iob_func referenced in function _ShowError dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\sdlmain.lib(SDL_win32_main.obj) 1
Error LNK2019 unresolved external symbol "public: __thiscall sn76496_device::sn76496_device(struct machine_config const &,char const *,class device_t *,unsigned int)" (??0sn76496_device@@QAE@ABUmachine_config@@PBDPAVdevice_t@@I@Z) referenced in function "void __cdecl `dynamic initializer for 'device_sn76496''(void)" (??__Edevice_sn76496@@YAXXZ) dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\tandy_sound.obj 1
Error LNK2019 unresolved external symbol "public: __thiscall saa1099_device::saa1099_device(struct machine_config const &,char const *,class device_t *,unsigned int)" (??0saa1099_device@@QAE@ABUmachine_config@@PBDPAVdevice_t@@I@Z) referenced in function "public: __thiscall CMS::CMS(class Section *)" (??0CMS@@QAE@PAVSection@@@Z) dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\gameblaster.obj 1
Error LNK2019 unresolved external symbol "public: __thiscall ncr8496_device::ncr8496_device(struct machine_config const &,char const *,class device_t *,unsigned int)" (??0ncr8496_device@@QAE@ABUmachine_config@@PBDPAVdevice_t@@I@Z) referenced in function "void __cdecl `dynamic initializer for 'device_ncr8496''(void)" (??__Edevice_ncr8496@@YAXXZ) dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\tandy_sound.obj 1
Error LNK2019 unresolved external symbol "public: void __thiscall sn76496_base_device::write(unsigned char)" (?write@sn76496_base_device@@QAEXE@Z) referenced in function "void __cdecl SN76496Write(unsigned int,unsigned int,unsigned int)" (?SN76496Write@@YAXIII@Z) dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\tandy_sound.obj 1
Error LNK2019 unresolved external symbol "public: void __thiscall sn76496_base_device::convert_samplerate(int)" (?convert_samplerate@sn76496_base_device@@QAEXH@Z) referenced in function "public: __thiscall TANDYSOUND::TANDYSOUND(class Section *)" (??0TANDYSOUND@@QAE@PAVSection@@@Z) dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\tandy_sound.obj 1
Error LNK2019 unresolved external symbol "public: void __thiscall saa1099_device::data_w(int,int,unsigned char)" (?data_w@saa1099_device@@QAEXHHE@Z) referenced in function "void __cdecl write_cms(unsigned int,unsigned int,unsigned int)" (?write_cms@@YAXIII@Z) dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\gameblaster.obj 1
Error LNK2019 unresolved external symbol "public: void __thiscall saa1099_device::control_w(int,int,unsigned char)" (?control_w@saa1099_device@@QAEXHHE@Z) referenced in function "void __cdecl write_cms(unsigned int,unsigned int,unsigned int)" (?write_cms@@YAXIII@Z) dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\gameblaster.obj 1
Error LNK1120 8 unresolved externals dosbox D:\Other\DosBox\dosbox-0.74-2\visualc_net\Release\dosbox.exe 1

Reply 10 of 11, by spiroyster

User metadata
Rank Oldbie
Rank
Oldbie

Those are linking errors, you have added the library dirs, but have you added the actual libraries?

Add SDL_net.lib in "Configuration Properties -> Librarian -> Input -> Additional Dependencies". Make sure you adding to the correct platform... i.e x64\SDL_net.lib for "x64" build platform, and x86\SDL_net.lib for "Win32/x86" build platform.

Reply 11 of 11, by jmarsh

User metadata
Rank Oldbie
Rank
Oldbie
Peter Swinkels wrote:
[…]
Show full quote
Error	LNK2019	unresolved external symbol __imp____iob_func referenced in function _ShowError	dosbox	D:\Other\DosBox\dosbox-0.74-2\visualc_net\sdlmain.lib(SDL_win32_main.obj)	1	

This is nasty, it means the static .lib for SDL that you are trying to link with was compiled with pre-VS2015 and isn't compatible with later versions (like VS2019). Only solution is to recompile it.