SDL 1.2.15 et VC6 incompatible ?
Bonjour,
Je viens de passer de la SDL 1.2.14 à la 1.2.15 (je laisse toujours un peut de temps avant de upgrader pour être sûr que tout marche bien, question de maturité)
Pour info, j'utilise un vieux compilo : VC6 (pas pour une question de maturité, c'est que j'ai une machine pas super recente et que malgres tout vc6 marche super bien dessus, merci visual assist x au passage, bref...)
En v 1.2.14, ca compile bien,
Donc je met a jour ma sdl (fichiers .h, .dll et .lib), et paf, ca ne compile plus...
Code:
1 2 3 4 5 6
| SDLmain.lib(SDL_win32_main.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external symbol ___security_cookie
SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external symbol __alloca_probe_16
SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external symbol __imp____iob_func |
Il semblerait donc que depuis la 1.2.15, VC6 ne soit plus supporté ?
pourtant dans la doc (visualC.htm) il est bien ecrit : "Using SDL with Microsoft Visual C++ 5,6 and 7" (au passage, il doit y avoir plus dinosore que moi pour utiliser vc5)
Quelqu'un a t'il déjà rencontré ce genre de probleme ?
Merci.
réponse un peu tardive, mais j'ai trouvé (pas testé) les infos pour faire fonctionner SDL2 avec VC6
perso, j'utilise toujours VC6 car je le trouve beaucoup plus efficace que les nouveaux VS écrits en .net
VC6
VC6 is hard to work for build the project. Must fixed the Code and add a VC6LIB.c for 3 functions when link will be used.
1.
Add 3 define: huge=Huge;__FUNCTION__=__LINE__;_USER32_
2.
Add 3 lib:winmm.lib version.lib imm32.lib
3.
VC6LIB.C
__ReadWriteBarrier()
GetRawInputData(),EnumDisplayDevicesW(),RegisterRawInputDevices()