[so] Compilare Windows

Mihai Borobocea mihaiborobocea at gmail.com
Thu Nov 1 20:59:02 EET 2007


Programul e urmatorul (test.c):

#include <windows.h>

void main(void)
{
}

Daca rulez:
cl /Wall test.c
sau
cl /Wall /EHsc test.c

Apar multe ecrane de warning-uri in stilul:

C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\include\winioctl
.h(3469) : warning C4668: '_WIN32_WINNT' is not defined as a preprocessor macro,
 replacing with '0' for '#if/#elif'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\include\winioctl
.h(3508) : warning C4820: '_DISK_EXTENT' : '4' bytes padding added after data me
mber 'DiskNumber'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\include\winioctl
.h(3518) : warning C4820: '_VOLUME_DISK_EXTENTS' : '4' bytes padding added after
 data member 'NumberOfDiskExtents'
c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\winsmcrd
.h(284) : warning C4820: '<unnamed-tag>' : '1' bytes padding added after data me
mber '<alignment member>'

Eu am instalat VS2005 de la msdnaa. Varianta Express nu compila nimic
care includea <windows.h> (probabil mai trebuia downloadat ceva pt
win32 api).
Sunt curios daca a mai intalnit cineva erori de genul asta, sau daca
combinatia mea de feature-uri bifate/debifate la instalare a produs
situatia asta.

Mihai Borobocea
341 CA


More information about the so mailing list