visual studio 2010 - Missing standard C libraries in cl -
i have windows project came makefile.vc. import visual studio 10.0. initial effort run nmake , invoke cl.exe compiler.
after getting paths straights first run generates message:
cl /nologo /w3 /o1 -i..\./ -i..\charset/ -i..\windows/ -i..\unix/ -i..\macosx/ /d_windows /d_win32_windows=0x500 /dwinver=0x500 /dhas_gssapi /dsecurity _win32 /c ..\be_all_s.c be_all_s.c ..\be_all_s.c(6) : fatal error c1083: cannot open include file: 'stdio.h': no such file or directory nmake : fatal error u1077: '"c:\program files (x86)\microsoft visual studio 10.0\vc\bin\cl.exe"' : return code '0x2' stop.
now know vc stdio.h header is, on pc it's @ c:\program files (x86)\microsoft visual studio 10.0\vc\include. simple matter add -i makefile , include directory.
but durn burn don't think should have to! other build systems don't make me , why doesn't command line compiler know standard headers installed? i'm asking if there's config file, .ini file or else cl reads tells standard c library. i've been browsing internet , visual studio no success.
just after posted question found answer.
start > programs > microsoft visual 10.0 > microsoft visual studio tools > visual studio command prompt
this gives me command prompt paths, env. variables etc. set.
why didn't find earlier?
Comments
Post a Comment