Erreur sous visual studio "LNK2019" - Programmation
TomsGuide.com : 700 000 inscrits répondent à toutes vos questions high-tech et informatique.
Pour obtenir de l'aide, inscrivez-vous gratuitement !
 




Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : Erreur sous visual studio "LNK2019"
 
Profil : IDNaute
Plus d'informations

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.


Message édité par Dactary le 12-01-2007 à 22:33:20
Liens sponsorisés


Inscrivez-vous ou connectez-vous pour masquer ceci.

Profil : IDNaute
Plus d'informations

Ton programme n'a pas résolu les signatures externe (signatures C++) Il te manque les liaisons avec les bibliothèques de base.
As-tu créé un projet de type application windows ?

Profil : IDNaute
Plus d'informations

En faite c'est des sources qui m'ont été fourni par un programmeur qui avait programmé le logiciel. Et il ma dit d'utiliser visual c++ d'ouvrir le fichier .sln et puis de lancer la compilation.

Profil : IDNaute
Plus d'informations

demande lui la version sous laquelle il l'a fait....

Bien que je ne penses pas que ca vienne de ça.....

Profil : IDNaute
Plus d'informations

Il est injoignable depuis trop de temps c'est sa le probléme mais il la déja compilé et sa fonctionné.

Profil : IDNaute
Plus d'informations

CRicky a écrit :

Ton programme n'a pas résolu les signatures externe (signatures C++) Il te manque les liaisons avec les bibliothèques de base.
As-tu créé un projet de type application windows ?



Oui c'est une application windows.

Profil : IDNaute
Plus d'informations

Il te manque les fonction Win32API de base, il doit te manquer les .lib du style win32.lib etc.
Peut-être que l'install de ton visual n'a pas installé le SDK windows ?

Profil : IDNaute
Plus d'informations

Je vien de faire une recherche et il me manque bien cette librairie. Et pour le SDK je l'ai installé aussi mais a part du logiciel.

Profil : IDNaute
Plus d'informations

Apparemment ces fonctions ne sont pas présentes dans la version Express. Peut-être que cette version de visual ne permet que de faire du .NET avec et pas directement du Win32API.
Si ça n'utilise pas les MFC, tu peux le compiler sous Dev-C++


Message édité par CRicky le 13-01-2007 à 18:13:53
Amitiés à tous
Profil : IDNaute
Plus d'informations

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/ [...] window.asp


---------------
Bonne chance
Pierre

  FORUM Infos-du-Net » Programmation » Erreur sous visual studio "LNK2019"

Aller à :
 

Liens