Bonjour, j'ai un problème avec l'installation de la librairie SDL sous Visual C++ 6.
J'ai été rechercher sur internet pour des solutions mais je n'ai rien trouvé qui fonctionnait.
J'ai mis les fichiers dans les répertoires de VC++ (les include et les librairies), j'ai rajouté /NODEFAULTLIB:msvcrt.lib dans project -> settings puis dans la liste qui se trouve dans link (comme j'avais vu sur un topic d'un autre forum), mais ça ne marche toujours pas
J'ai aussi mis ceci en début de code:
#include <stdlib.h>
#include <SDL.h>
#ifdef WIN32
#pragma comment(lib, "SDL.lib")
#pragma comment(lib, "SDLmain.lib")
#endif
Et j'ai ces erreurs-ci:
--------------------Configuration: Fenetre_SDL2 - Win32 Debug--------------------
Linking...
LINK : warning LNK4049: locally defined symbol "_exit" imported
LINK : warning LNK4049: locally defined symbol "_fprintf" imported
LINK : warning LNK4049: locally defined symbol "__iob" imported
LINK : warning LNK4049: locally defined symbol "_fclose" imported
LINK : warning LNK4049: locally defined symbol "__pctype" imported
LINK : warning LNK4049: locally defined symbol "___mb_cur_max" imported
LINK : warning LNK4049: locally defined symbol "__isctype" imported
SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external symbol __imp__strrchr
Debug/Fenetre_SDL2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Fenetre_SDL2.exe - 2 error(s), 7 warning(s)
qui proviennent lors du link (et pas de la compilation), la compilation se passe sans erreurs ni warnings donc ça doit venir d'un problème de bibliothèques j'imagine, mais je n'arrive pas à trouver ce que c'est
J'espère que vous pourrez m'aider
Merci
Partager