Hi Smu, > I posted this question on the users- mailling list, with no replies. Perhaps > it's a bit more developer suited. Hopefully I am not intruding by posting > this here. > • Why can't I compile my Hello World program on my Windows 7 x64 OS? > C:\hb20\bin>hbmk2.exe hello.prg > hbmk2: Processing configuration: C:\hb20\bin\hbmk.cfg > Harbour 2.0.0 (Rev. 13372) > Copyright (c) 1999-2010, http://www.harbour-project.org/ > > Compiling 'hello.prg'... > > Lines 1, Functions/Procedures 1 > Generating C source output to 'hello.c'... Done. > C:/hb20/lib/win/mingw/libhbvm.a(hvmall.o):hvmall.c:(.text+0x2e23): undefined r > eference to `__mingw_vprintf' > > C:/hb20/lib/win/mingw/libhbvm.a(hvmall.o):hvmall.c:(.text+0x359b): undefined r > > eference to `__mingw_vfprintf' > collect2: ld returned 1 exit status > hbmk2: Error: Running linker. 1 > gcc.exe hello.o hbmk_mn4kgp.o -mconsole -Wl,--start-group -lhbextern > -lhbdebu > > g -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt > -lgt > > gui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -l > hbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 - > > ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 > -lo > > leaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib > -W > l,--end-group -ohello.exe -L"C:/hb20/lib/win/mingw"
It seems you opted to not install the embedded MinGW compiler, which means it uses the one you have installed in PATH, and this one isn't compatible with this Harbour build. Can you tell us which MinGW version is this? > Note: I also found and read the HARBOUR_README_MINGW64 file. The instructions > were a bit vague, as the link it provides gives you many options of what to > install and no hint as to which one you need. But with my brother's help, he > picked out likely the one to use, and it didn't make any difference on this > issue. Nor did reinstalling Harbour 2.0.0 with every option installed in the > Wizard. *sad face* MinGW64 is required only if want to create x64 binaries. Instruction are vague because no one has time to update the link every week, plus lately there is both x64 and x86 native binaries as option (both can be used with Harbour). MinGW64 is still is development phase and hopefully they'll make it more obvious what to download to use it. Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour