Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Erreur de compilation avec VC++ 2005 Express

1 réponse
Avatar
sebastien.ramage
Bonjour =E0 tous,

voici mon probl=E8me, j'ai t=E9l=E9charger le gecko SDK dans l'optique de
cr=E9er un plugin pour firefox
Avec ce SDK sont fournis des exemples de projet initialement cr=E9er
pour VC6

J'ai import=E9 un projet dans VC++ 2005 express et lorsque je lance la
compilation j'obtiens les erreurs suivantes :

C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\npapi.h(38) : error C2146: syntax error : missing ';' before
identifier 'APIENTRY'
C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\npapi.h(38) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\npapi.h(38) : error C2146: syntax error : missing ';' before
identifier 'NPAddConnection'
C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\npapi.h(38) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\npapi.h(39) : error C2065: 'LPNETRESOURCEW' : undeclared
identifier
C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\npapi.h(39) : error C2146: syntax error : missing ')' before
identifier 'lpNetResource'
.=2E..

et =E7a continu , il y a 486erreurs.
naturellement je me doute bien que l'erreur ne vient pas napi.h
mais =E0 vrai dire je ne connais pas grand chose en C++ ni en
compilation

Quelqu'un peut m'expliquer ce qu'il se passe ? et comment r=E9soudre le
probl=E8me?

Merci
Seb

1 réponse

Avatar
sebastien.ramage
...
la réponse est : IDIOT

oui le compilateur n'allait pas cherché le bon fichier napi.h
il prenait celui du SDK Windows au lieu de prendre celui fournis avec
Gecko

voici maintenant la nouvelle erreur :

.basic.rc(10) : fatal error RC1015: cannot open include file
'winresrc.h'.

je vais chercher un peu...

Seb








Bonjour à tous,

voici mon problème, j'ai télécharger le gecko SDK dans l'optique de
créer un plugin pour firefox
Avec ce SDK sont fournis des exemples de projet initialement créer
pour VC6

J'ai importé un projet dans VC++ 2005 express et lorsque je lance la
compilation j'obtiens les erreurs suivantes :

C:Program FilesMicrosoft Platform SDK for Windows Server 2003
R2Includenpapi.h(38) : error C2146: syntax error : missing ';' before
identifier 'APIENTRY'
C:Program FilesMicrosoft Platform SDK for Windows Server 2003
R2Includenpapi.h(38) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:Program FilesMicrosoft Platform SDK for Windows Server 2003
R2Includenpapi.h(38) : error C2146: syntax error : missing ';' before
identifier 'NPAddConnection'
C:Program FilesMicrosoft Platform SDK for Windows Server 2003
R2Includenpapi.h(38) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:Program FilesMicrosoft Platform SDK for Windows Server 2003
R2Includenpapi.h(39) : error C2065: 'LPNETRESOURCEW' : undeclared
identifier
C:Program FilesMicrosoft Platform SDK for Windows Server 2003
R2Includenpapi.h(39) : error C2146: syntax error : missing ')' before
identifier 'lpNetResource'
....

et ça continu , il y a 486erreurs.
naturellement je me doute bien que l'erreur ne vient pas napi.h
mais à vrai dire je ne connais pas grand chose en C++ ni en
compilation

Quelqu'un peut m'expliquer ce qu'il se passe ? et comment résoudre le
problème?

Merci
Seb