Hi Martin, > 2. as above but used MS Visual Studio v9.0 C++ to compile C code to produce > a Windows executable > - used: harbour ausway.prg -kc -gc > - ausway.c has the following header, I wanted an msvc env (see below), is > this correct?
I wouldn't recommend using C compiler directly. > SET HB_ARCHITECTURE=WIN > SET MSCV=C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO 9.0\VC > SET PLATFORM=C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO 2008 > SET HB_COMPILER=MSVC > SET HB_PATH=C:\HB20 > SET HB_BIN_COMPILE=C:\HB20\BIN > SET HB_BIN_INSTALL=C:\HB20\BIN > SET HB_LIB_INSTALL=C:\HB20\LIB > SET HB_INC_INSTALL=C:\HB20\INCLUDE > SET INCLUDE=C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO > 9.0\VC\CE\INCLUDE;C:\HB20\INCLUDE > SET LIB=C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO > 9.0\VC\CE\LIB\;C:\HB20\LIB\WIN\MSVC; > C:\PROGRAM FILES\MICROSOFT SDKS\WINDOWS\V6.0A\LIB > CALL "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO 9.0\VC\BIN\VCVARS32.BAT" > hbmk2 ausway.c As for MSVC configuration look into INSTALL (or MS docs), most of above Harbour related configuration is unnecessary. Try with something like: --- CALL "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO 9.0\VC\BIN\VCVARS32.BAT" C:\HB20\BIN\hbmk2 ausway.prg --- Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour