Erreur sous visual studio "LNK2019"
Dernière réponse : dans Programmation
Bonjour, j'ai éssayé de compiler les sources d'un programme sous visual c++ express 2005 et a la compilation j'ai ces erreurs :
Édition des liens en cours...
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__RemovePropA@8 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetWindowLongA@12 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetTextColor@8 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__CallWindowProcA@20 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetPropA@8 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__DeleteObject@4 référencé dans la fonction "long __stdcall _HyperlinkProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetCursor@4 référencé dans la fonction "long __stdcall _HyperlinkProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__LoadCursorA@8 référencé dans la fonction "long __stdcall _HyperlinkProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__CreateFontIndirectA@4 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetObjectA@12 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SendMessageA@16 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
prophetie.obj : error LNK2001: symbole externe non résolu __imp__SendMessageA@16
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetWindowLongA@8 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetPropA@12 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetDlgItem@8 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
prophetie.obj : error LNK2001: symbole externe non résolu __imp__GetDlgItem@8
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetWindowTextA@12 référencé dans la fonction "int __stdcall StopOnT4CClientWnd(struct HWND__ *,long)" (?StopOnT4CClientWnd@@YGHPAUHWND__@@J@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__SetWindowPos@28 référencé dans la fonction "void __cdecl CenterWindow(struct HWND__ *)" (?CenterWindow@@YAXPAUHWND__@@@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetDesktopWindow@0 référencé dans la fonction "void __cdecl CenterWindow(struct HWND__ *)" (?CenterWindow@@YAXPAUHWND__@@@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetWindowRect@8 référencé dans la fonction "void __cdecl CenterWindow(struct HWND__ *)" (?CenterWindow@@YAXPAUHWND__@@@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__IsWindow@4 référencé dans la fonction "void __cdecl StartThread_Watchdog(void *)" (?StartThread_Watchdog@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__EnumWindows@8 référencé dans la fonction "void __cdecl StartThread_Watchdog(void *)" (?StartThread_Watchdog@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__EndDialog@8 référencé dans la fonction "void __cdecl StartThread_SendUDP(void *)" (?StartThread_SendUDP@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__MessageBoxA@16 référencé dans la fonction "void __cdecl StartThread_SendUDP(void *)" (?StartThread_SendUDP@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__EnableWindow@8 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetDlgItemTextA@16 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__SetDlgItemTextA@12 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__LoadIconA@8 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__DialogBoxParamA@20 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegQueryValueExA@24 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegOpenKeyExA@20 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegCloseKey@4 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegSetValueExA@24 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegCreateKeyExA@36 référencé dans la fonction _WinMain@16
./Release/prophetie.exe : fatal error LNK1120: 32 externes non résolus
Est ce que quelqu'un saurrai d'ou sa vien?et comment corriger?. Je vous en remercie d'avance.
Édition des liens en cours...
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__RemovePropA@8 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetWindowLongA@12 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetTextColor@8 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__CallWindowProcA@20 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetPropA@8 référencé dans la fonction "long __stdcall _HyperlinkParentProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkParentProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__DeleteObject@4 référencé dans la fonction "long __stdcall _HyperlinkProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetCursor@4 référencé dans la fonction "long __stdcall _HyperlinkProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__LoadCursorA@8 référencé dans la fonction "long __stdcall _HyperlinkProc(struct HWND__ *,unsigned int,unsigned int,long)" (?_HyperlinkProc@@YGJPAUHWND__@@IIJ@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__CreateFontIndirectA@4 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetObjectA@12 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SendMessageA@16 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
prophetie.obj : error LNK2001: symbole externe non résolu __imp__SendMessageA@16
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetWindowLongA@8 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__SetPropA@12 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
hyperlinks.obj : error LNK2019: symbole externe non résolu __imp__GetDlgItem@8 référencé dans la fonction "void __cdecl ConvertStaticToHyperlink(struct HWND__ *,unsigned int)" (?ConvertStaticToHyperlink@@YAXPAUHWND__@@I@Z)
prophetie.obj : error LNK2001: symbole externe non résolu __imp__GetDlgItem@8
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetWindowTextA@12 référencé dans la fonction "int __stdcall StopOnT4CClientWnd(struct HWND__ *,long)" (?StopOnT4CClientWnd@@YGHPAUHWND__@@J@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__SetWindowPos@28 référencé dans la fonction "void __cdecl CenterWindow(struct HWND__ *)" (?CenterWindow@@YAXPAUHWND__@@@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetDesktopWindow@0 référencé dans la fonction "void __cdecl CenterWindow(struct HWND__ *)" (?CenterWindow@@YAXPAUHWND__@@@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetWindowRect@8 référencé dans la fonction "void __cdecl CenterWindow(struct HWND__ *)" (?CenterWindow@@YAXPAUHWND__@@@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__IsWindow@4 référencé dans la fonction "void __cdecl StartThread_Watchdog(void *)" (?StartThread_Watchdog@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__EnumWindows@8 référencé dans la fonction "void __cdecl StartThread_Watchdog(void *)" (?StartThread_Watchdog@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__EndDialog@8 référencé dans la fonction "void __cdecl StartThread_SendUDP(void *)" (?StartThread_SendUDP@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__MessageBoxA@16 référencé dans la fonction "void __cdecl StartThread_SendUDP(void *)" (?StartThread_SendUDP@@YAXPAX@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__EnableWindow@8 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__GetDlgItemTextA@16 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__SetDlgItemTextA@12 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__LoadIconA@8 référencé dans la fonction "int __stdcall MainDialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MainDialogProc@@YGHPAUHWND__@@IIJ@Z)
prophetie.obj : error LNK2019: symbole externe non résolu __imp__DialogBoxParamA@20 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegQueryValueExA@24 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegOpenKeyExA@20 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegCloseKey@4 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegSetValueExA@24 référencé dans la fonction _WinMain@16
prophetie.obj : error LNK2019: symbole externe non résolu __imp__RegCreateKeyExA@36 référencé dans la fonction _WinMain@16
./Release/prophetie.exe : fatal error LNK1120: 32 externes non résolus
Est ce que quelqu'un saurrai d'ou sa vien?et comment corriger?. Je vous en remercie d'avance.
Autres pages sur : erreur visual studio lnk2019
Lassé par la pub ? Créez un compte
L'utilisation de certaines fonctions nécessite d'indiquer à l'éditeur de liens les librairies à charger:
aller dans les propriétés, rubrique Editeur de liens, puis Entrées et dans la zone Dépendances supplémentaires mettre le nom des fichiers de librairie à utiliser.
En général pour une application windows l'ajout de user32.lib supprime déjà bien des problèmes.
Nota: la documentation Microsoft sur les différentes fonctions indique, en général en fin de description, les dépendances. Par exemple voir le lien suivant pour CreateWindow(...):
http://msdn.microsoft.com/library/default.asp?url=/libr...
aller dans les propriétés, rubrique Editeur de liens, puis Entrées et dans la zone Dépendances supplémentaires mettre le nom des fichiers de librairie à utiliser.
En général pour une application windows l'ajout de user32.lib supprime déjà bien des problèmes.
Nota: la documentation Microsoft sur les différentes fonctions indique, en général en fin de description, les dépendances. Par exemple voir le lien suivant pour CreateWindow(...):
http://msdn.microsoft.com/library/default.asp?url=/libr...
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :
- ForumCompilateur visual studio erreur ouverture solution
- ForumErreur d'instalation de visual studio
- ForumError lnk2019 visual studio
- solutionsVisual studio error lnk2019
- ForumC visual studio erreur de compilation
- ForumErreur au demarrage de visual studio .net
- ForumErreur d'installation de visual studio 2005
- ForumVisual studio 2008 erreur lors 0xc00007b
- solutionsVisual studio 2008 erreur installation disk full
- ForumVisual studio et sqlserver
- Voir plus