Bonjour j'ai d�j� post� mon probl�me dans les Moteurs 3D. Mais nous avons d�couvert un probl�me qui interresse plus cette partie du forum...
Donc voil� mon probl�me:
Je dois ajouter D/ WIN32 quelquepart dans Code::Blocks mais o�?
J'ai d�j� essayer de la sp�cifier directement dans le code avec un define mais �a chmboule tout le code et me met des erreur tel que ceux ci:
Application.cpp
C:\Developpement\CodeBlocks\include\winnt.h(3035) : warning C4103: 'c:\developpement\codeblocks\include\winnt.h' : used #pragma pack to change alignment
C:\Developpement\CodeBlocks\include\winnt.h(3327) : warning C4103: 'c:\developpement\codeblocks\include\winnt.h' : used #pragma pack to change alignment
C:\Developpement\CodeBlocks\include\winnt.h(3423) : warning C4068: unknown pragma
C:\Developpement\CodeBlocks\include\winnt.h(3428) : warning C4068: unknown pragma
C:\Developpement\CodeBlocks\include\winbase.h(1252) : error C2144: syntax error : 'void' should be preceded by ';'
C:\Developpement\CodeBlocks\include\winbase.h(1252) : error C2501: 'DECLSPEC_NORETURN' : missing storage-class or type specifiers
C:\Developpement\CodeBlocks\include\winbase.h(1253) : error C2144: syntax error : 'void' should be preceded by ';'
C:\Developpement\CodeBlocks\include\winbase.h(1253) : error C2501: 'DECLSPEC_NORETURN' : missing storage-class or type specifiers
C:\Developpement\CodeBlocks\include\winbase.h(1253) : error C2086: 'int DECLSPEC_NORETURN' : redefinition
C:\Developpement\CodeBlocks\include\winbase.h(1252) : see declaration of 'DECLSPEC_NORETURN'
C:\Developpement\CodeBlocks\include\winbase.h(1313) : error C2144: syntax error : 'void' should be preceded by ';'
C:\Developpement\CodeBlocks\include\winbase.h(1313) : error C2501: 'DECLSPEC_NORETURN' : missing storage-class or type specifiers
C:\Developpement\CodeBlocks\include\winbase.h(1313) : error C2086: 'int DECLSPEC_NORETURN' : redefinition
C:\Developpement\CodeBlocks\include\winbase.h(1252) : see declaration of 'DECLSPEC_NORETURN'
C:\Developpement\CodeBlocks\include\rpcdce.h(366) : error C2144: syntax error : 'void' should be preceded by ';'
C:\Developpement\CodeBlocks\include\rpcdce.h(366) : error C2501: 'DECLSPEC_NORETURN' : missing storage-class or type specifiers
C:\Developpement\CodeBlocks\include\rpcdce.h(366) : error C2086: 'int DECLSPEC_NORETURN' : redefinition
C:\Developpement\CodeBlocks\include\winbase.h(1252) : see declaration of 'DECLSPEC_NORETURN'
C:\Developpement\CodeBlocks\include\rpcdcep.h(89) : error C2146: syntax error : missing ';' before identifier 'I_RpcAllocate'
C:\Developpement\CodeBlocks\include\shellapi.h(129) : warning C4103: 'c:\developpement\codeblocks\include\shellapi.h' : used #pragma pack to change alignment
C:\Developpement\CodeBlocks\include\shellapi.h(265) : warning C4103: 'c:\developpement\codeblocks\include\shellapi.h' : used #pragma pack to change alignment
C:\Developpement\CodeBlocks\include\winsock2.h(524) : error C2146: syntax error : missing ';' before identifier 'inet_ntoa'
C:\Developpement\CodeBlocks\include\winsock2.h(524) : error C2733: second C linkage of overloaded function 'DECLARE_STDCALL_P' not allowed
C:\Developpement\CodeBlocks\include\winsock2.h(524) : see declaration of 'DECLARE_STDCALL_P'
C:\Developpement\CodeBlocks\include\winsock2.h(533) : error C2146: syntax error : missing ';' before identifier 'gethostbyaddr'
C:\Developpement\CodeBlocks\include\winsock2.h(533) : error C2733: second C linkage of overloaded function 'DECLARE_STDCALL_P' not allowed
C:\Developpement\CodeBlocks\include\winsock2.h(533) : see declaration of 'DECLARE_STDCALL_P'
C:\Developpement\CodeBlocks\include\winsock2.h(534) : error C2146: syntax error : missing ';' before identifier 'gethostbyname'
C:\Developpement\CodeBlocks\include\winsock2.h(535) : error C2146: syntax error : missing ';' before identifier 'getservbyport'
C:\Developpement\CodeBlocks\include\winsock2.h(535) : error C2733: second C linkage of overloaded function 'DECLARE_STDCALL_P' not allowed
C:\Developpement\CodeBlocks\include\winsock2.h(535) : see declaration of 'DECLARE_STDCALL_P'
C:\Developpement\CodeBlocks\include\winsock2.h(536) : error C2146: syntax error : missing ';' before identifier 'getservbyname'
C:\Developpement\CodeBlocks\include\winsock2.h(537) : error C2146: syntax error : missing ';' before identifier 'getprotobynumber'
C:\Developpement\CodeBlocks\include\winsock2.h(537) : error C2733: second C linkage of overloaded function 'DECLARE_STDCALL_P' not allowed
C:\Developpement\CodeBlocks\include\winsock2.h(537) : see declaration of 'DECLARE_STDCALL_P'
C:\Developpement\CodeBlocks\include\winsock2.h(538) : error C2146: syntax error : missing ';' before identifier 'getprotobyname'
Process terminated with status 1 (0 minutes, 5 seconds)
23 errors, 6 warnings
Donc j'ai la nette impression que faire �a n'es pas tr�s judicieux...donc comment le rentrer directement dans le compilateur?
Partager