Bonjour � tou(te)s,
On m'a confi� un projet d�velopp� sous Visual Studio .NET 2003, � reprendre en utilisant Visual Studio 2008 (Professional Edition).
A la compilation du projet, on obitent l'erreur suivante:
cl : Command line error D8045 : cannot compile C file '.\Include\PC_Components\xml\xmlfind.c' with the /clr option
Si j'essaie d'inhiber l'option /CLR de la compilation depuis le champs "Common Language Runtime Support" (dsl je suis en Anglais) de l'onglet General des propri�t�s de configuration du projet, j'obtiens tout un tas d'erreur, ce qui semble indiquer que le projet necessite bien le Management de code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| c:\PROJET\Form1.h(1708) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1708) : error C2065: 'String' : undeclared identifier
c:\PROJET\Form1.h(1708) : error C2065: 'Text' : undeclared identifier
c:\PROJET\Form1.h(1708) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1708) : error C2061: syntax error : identifier 'String'
c:\PROJET\Form1.h(1709) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1709) : error C2065: 'String' : undeclared identifier
c:\PROJET\Form1.h(1709) : error C2065: 'Caption' : undeclared identifier
c:\PROJET\Form1.h(1709) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1709) : error C2061: syntax error : identifier 'String'
c:\PROJET\Form1.h(1711) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1711) : error C2065: 'Text' : undeclared identifier
c:\PROJET\Form1.h(1711) : error C2065: 'Caption' : undeclared identifier
c:\PROJET\Form1.h(1711) : error C3861: 'Show': identifier not found
c:\PROJET\Form1.h(1716) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1716) : error C2065: 'String' : undeclared identifier
c:\PROJET\Form1.h(1716) : error C2065: 'Text' : undeclared identifier
c:\PROJET\Form1.h(1716) : error C2062: type 'int' unexpected
c:\PROJET\Form1.h(1717) : error C2143: syntax error : missing ';' before '{'
c:\PROJET\Form1.h(1717) : error C2447: '{' : missing function header (old-style formal list?)
c:\PROJET\Form1.h(1762) : error C2871: 'System' : a namespace with this name does not exist
c:\PROJET\Form1.h(1763) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1763) : error C2871: 'ComponentModel' : a namespace with this name does not exist
c:\PROJET\Form1.h(1764) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1764) : error C2871: 'Collections' : a namespace with this name does not exist
c:\PROJET\Form1.h(1765) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1765) : error C2871: 'Forms' : a namespace with this name does not exist
c:\PROJET\Form1.h(1766) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1766) : error C2871: 'Data' : a namespace with this name does not exist
c:\PROJET\Form1.h(1767) : error C2653: 'System' : is not a class or namespace name
c:\PROJET\Form1.h(1767) : error C2871: 'Drawing' : a namespace with this name does not exist
c:\PROJET\Form1.h(1778) : error C4980: '__gc' : use of this keyword requires /clr:oldSyntax command line option
c:\PROJET\Form1.h(1778) : error C3630: error when processing the token '__gc'
c:\PROJET\Form1.h(1778) : fatal error C1190: managed targeted code requires a '/clr' option
AssemblyInfo.cpp
.\AssemblyInfo.cpp(3) : error C2653: 'System' : is not a class or namespace name
.\AssemblyInfo.cpp(3) : error C2871: 'Reflection' : a namespace with this name does not exist
.\AssemblyInfo.cpp(4) : error C2653: 'System' : is not a class or namespace name
.\AssemblyInfo.cpp(4) : error C2871: 'CompilerServices' : a namespace with this name does not exist
.\AssemblyInfo.cpp(11) : error C2337: 'AssemblyTitleAttribute' : attribute not found
.\AssemblyInfo.cpp(12) : error C2337: 'AssemblyDescriptionAttribute' : attribute not found
.\AssemblyInfo.cpp(13) : error C2337: 'AssemblyConfigurationAttribute' : attribute not found
.\AssemblyInfo.cpp(14) : error C2337: 'AssemblyCompanyAttribute' : attribute not found
.\AssemblyInfo.cpp(15) : error C2337: 'AssemblyProductAttribute' : attribute not found
.\AssemblyInfo.cpp(16) : error C2337: 'AssemblyCopyrightAttribute' : attribute not found
.\AssemblyInfo.cpp(17) : error C2337: 'AssemblyTrademarkAttribute' : attribute not found
.\AssemblyInfo.cpp(18) : error C2337: 'AssemblyCultureAttribute' : attribute not found
.\AssemblyInfo.cpp(31) : error C2337: 'AssemblyVersionAttribute' : attribute not found
.\AssemblyInfo.cpp(55) : error C2337: 'AssemblyDelaySignAttribute' : attribute not found
.\AssemblyInfo.cpp(56) : error C2337: 'AssemblyKeyFileAttribute' : attribute not found
.\AssemblyInfo.cpp(57) : error C2337: 'AssemblyKeyNameAttribute' : attribute not found |
J'ai lu qu'on pouvait inhiber l'action de l'option /CLR � la compilation pour des fonctions particuli�res, en utilisant un #pragma unmanaged .
J'ai essay� de l'ins�rer en d�but de fichier xmlfind.c mais il m'indique encore la m�me erreur...
Pour dire vrai, je ne connais pas grand chose � la notion de "Code Management"...
J'ai not� �galement une conversion de fichiers (*.sln, *.vcproj et c'est tout a priori) n�cessaire pour migrer en Visual2008, si par hasard il y aurait un lien...
Quelqu'un aurait-il une piste, ou des conseils ??
Merci d'avance
Partager