Impossible d'executer un programme après compilation (DLL manquante) - C - Programmation
Marsh Posté le 02-06-2010 à 02:03:44
Le probleme ne vient pas de la SDL, mais de la runtime C de windows (msvcr10.dll). Il faut installer ces dlls sur les posts clients. Il y a un utilitaire pour faire ca, vcredist.exe que tu devrais trouver dans le repertoire d'install de visual.
Marsh Posté le 02-06-2010 à 01:04:13
Salut à tous,
je galère sur la compilation d'un programme en C utilisant la SDL.
J'utilise Visual studio 2010, lorsque je génère ma solution, tout se passe bien, il me dit "La génération a réussi."
Lorsque j'execute le .exe sur mon pc tout fonctionne, mais lorsque je veux l'executer sous une autre machine j'ai une erreur :
"This application has failed to start because MSVCR100.dll was not foud[...]"
Voila ce que j'ai en sortie lorsque je génère avec visual studio :
1>------ Début de la régénération globale*: Projet*: Phuuuchiiion, Configuration*: Debug Win32 ------
1>La génération a démarré 02/06/2010 00:43:31.
1>_PrepareForClean:
1> Suppression du fichier "Debug\Phuuuchiiion.lastbuildstate".
1>InitializeBuildStatus:
1> Création de "Debug\Phuuuchiiion.unsuccessfulbuild", car "AlwaysCreate" a été spécifié.
1>ClCompile:
1> main.c
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\main.c(35): warning C4244: 'fonction'*: conversion de 'time_t' en 'unsigned int', perte possible de données
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\main.c(38): warning C4996: 'putenv': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _putenv. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(869)*: voir la déclaration de 'putenv'
1> function.c
1> figure.c
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\figure.c(10): warning C4129: 'C'*: caractère de séquence d'échappement non reconnu
1> SDL_part.c
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(20): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843)*: voir la déclaration de '_sleep'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(21): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(34): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843)*: voir la déclaration de '_sleep'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(37): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(55): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(75): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(99): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(105): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(111): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(172): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(181): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(193): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(287): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(293): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(300): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(343): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(352): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(364): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(386): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(395): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(406): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(437): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843)*: voir la déclaration de '_sleep'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(441): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(482): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843)*: voir la déclaration de '_sleep'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(485): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843)*: voir la déclaration de '_sleep'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(498): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(507): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(519): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(534): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(549): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843)*: voir la déclaration de '_sleep'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(552): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(559): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(585): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(594): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(606): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\sdl_part.c(621): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371)*: voir la déclaration de 'sprintf'
1> affichage.c
1>c:\users\adeel\downloads\drivers\magnum\pokersdl\phuuuchiiion\affichage.c(62): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304)*: voir la déclaration de 'scanf'
1> Génération de code en cours...
1>Manifest:
1> Suppression du fichier "Debug\Phuuuchiiion.exe.embed.manifest".
1>LinkEmbedManifest:
1> Phuuuchiiion.vcxproj -> C:\Users\Adeel\Downloads\Drivers\Magnum\PokerSDL\Debug\Phuuuchiiion.exe
1>FinalizeBuildStatus:
1> Suppression du fichier "Debug\Phuuuchiiion.unsuccessfulbuild".
1> Mise à jour de l'horodatage "Debug\Phuuuchiiion.lastbuildstate".
1>
1>La génération a réussi.
1>
1>Temps écoulé 00:00:01.63
Régénération globale*: 1 a réussi, 0 a échoué, 0 a été ignoré
Voici mes réglages :
-C/C++ -> Generation de code -> Bibliotheque runtime -> DLL Multithread(/MD)
-C/C++ -> Avancé -> Compiler comme langage C
-Éditeur de lien -> Entrée -> Dépendances supplémentaires -> SDL.lib
SDLmain.lib
SDL_ttf.lib
-Éditeur de lien -> Système -> Sous système -> Windows (/SUBSYSTEM:WINDOWS)
Merci pour votre aide