I am setting up the following environment:
1. xHarbour Build 10205
2. FiveWin 17.07
3. MSVC 2015
I have modified the FiveWin\samples\buildxm.bat as follow:
- Code: Select all Expand view
@ECHO OFF
CLS
ECHO
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for xHarbour 17.07 (MSVC++) July 2017 xHarbour development
power ³Ü
ECHO ³ (c) FiveTech, 1993-2017 for Microsoft Windows
9x/NT/2000/ME/XP/Vista/7/8 ³Û
ECHO
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
Û
ECHO ÿ
ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
ECHO Compiling...
set hdir=D:\xhb_fw_msvc15\xhb10205
set vcdir=D:\xhb_fw_msvc15\vc2015
set include=%vcdir%\include;%hdir%\include;%include%
set lib=%vcdir%\lib;%hdir%\vc\lib;%lib%
%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include /w /p %2 %3 > clip.log 2>
warnings.log
@type clip.log
@type warnings.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT
%vcdir%\bin\cl -TP -W3 -c /GA %1.c
:ENDCOMPILE
IF EXIST %1.rc %vcdir%\sdk\bin\rc -r -d__FLAT__ %1
echo %1.obj > msvc.tmp
echo D:\xhb_fw_msvc15\fw1707\lib\Fivehmx.lib >> msvc.tmp
echo D:\xhb_fw_msvc15\fw1707\lib\FiveHCM.lib >> msvc.tmp
echo %hdir%\lib\rtl.lib >> msvc.tmp
echo %hdir%\lib\vm.lib >> msvc.tmp
echo %hdir%\lib\gtgui.lib >> msvc.tmp
echo %hdir%\lib\lang.lib >> msvc.tmp
echo %hdir%\lib\macro.lib >> msvc.tmp
echo %hdir%\lib\rdd.lib >> msvc.tmp
echo %hdir%\lib\dbfntx.lib >> msvc.tmp
echo %hdir%\lib\dbfcdx.lib >> msvc.tmp
echo %hdir%\lib\dbffpt.lib >> msvc.tmp
echo %hdir%\lib\hbsix.lib >> msvc.tmp
echo %hdir%\lib\debug.lib >> msvc.tmp
echo %hdir%\lib\common.lib >> msvc.tmp
echo %hdir%\lib\pp.lib >> msvc.tmp
echo %hdir%\lib\pcrepos.lib >> msvc.tmp
rem echo c:\harbour\lib\vc98\png.lib >> msvc.tmp
rem echo c:\harbour\lib\vc98\hbzlib.lib >> msvc.tmp
rem Uncomment these two lines to use Advantage RDD
rem echo %hdir%\lib\vc\rddads.lib >> msvc.tmp
rem echo %hdir%\lib\vc\ace32.lib >> msvc.tmp
rem echo %vcdir%\lib\msvcrt.lib >> msvc.tmp
echo %vcdir%\sdk\lib\kernel32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\user32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\gdi32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\winspool.lib >> msvc.tmp
echo %vcdir%\sdk\lib\comctl32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\comdlg32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\advapi32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\shell32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\ole32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\oleaut32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\uuid.lib >> msvc.tmp
echo %vcdir%\sdk\lib\odbc32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\odbccp32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\mpr.lib >> msvc.tmp
echo %vcdir%\sdk\lib\msimg32.lib >> msvc.tmp
echo %vcdir%\sdk\lib\oledlg.lib >> msvc.tmp
echo %vcdir%\sdk\lib\psapi.lib >> msvc.tmp
echo %vcdir%\sdk\lib\version.lib >> msvc.tmp
IF EXIST %1.res echo %1.res >> msvc.tmp
%vcdir%\bin\link @msvc.tmp /NODEFAULTLIB:LIBC /nologo /subsystem:windows
/force:multiple
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
%1
GOTO EXIT
ECHO
rem delete temporary files
@del %1.c
@del msvc.tmp
:LINKERROR
ECHO * There are errors
GOTO EXIT
:SINTAX
ECHO SYNTAX: Build [Program] {-- No especifiques la extensión PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO The specified PRG %1 does not exist
:EXIT
I use fivehmx.lib and fivehcm.lib because this is FiveWin for xHarbour with MSVC 2015.
However, I get a whole bunch of errors. This is just an excerpt of the error:
- Code: Select all Expand view
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipBitmapSetPixel@16
sin resolver al que se hace referencia en la función "public: enum Gdiplus::Sta
tus __thiscall Gdiplus::Bitmap::SetPixel(int,int,class Gdiplus::Color const &)"
(?SetPixel@Bitmap@Gdiplus@@QAE?AW4Status@2@HHABVColor@2@@Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipCreateHICONFromBi
tmap@8 sin resolver al que se hace referencia en la función "public: enum Gdiplu
s::Status __thiscall Gdiplus::Bitmap::GetHICON(struct HICON__ * *)" (?GetHICON@B
itmap@Gdiplus@@QAE?AW4Status@2@PAPAUHICON__@@@Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipDisposeImageAttri
butes@4 sin resolver al que se hace referencia en la función "public: __thiscall
Gdiplus::ImageAttributes::~ImageAttributes(void)" (??1ImageAttributes@Gdiplus@@
QAE@XZ)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipSetInterpolationM
ode@8 sin resolver al que se hace referencia en la función "public: enum Gdiplus
::Status __thiscall Gdiplus::Graphics::SetInterpolationMode(enum Gdiplus::Interp
olationMode)" (?SetInterpolationMode@Graphics@Gdiplus@@QAE?AW4Status@2@W4Interpo
lationMode@2@@Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipTranslateWorldTra
nsform@16 sin resolver al que se hace referencia en la función "public: enum Gdi
plus::Status __thiscall Gdiplus::Graphics::TranslateTransform(float,float,enum G
diplus::MatrixOrder)" (?TranslateTransform@Graphics@Gdiplus@@QAE?AW4Status@2@MMW
4MatrixOrder@2@@Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipScaleWorldTransfo
rm@16 sin resolver al que se hace referencia en la función "public: enum Gdiplus
::Status __thiscall Gdiplus::Graphics::ScaleTransform(float,float,enum Gdiplus::
MatrixOrder)" (?ScaleTransform@Graphics@Gdiplus@@QAE?AW4Status@2@MMW4MatrixOrder
@2@@Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipRotateWorldTransf
orm@12 sin resolver al que se hace referencia en la función "public: enum Gdiplu
s::Status __thiscall Gdiplus::Graphics::RotateTransform(float,enum Gdiplus::Matr
ixOrder)" (?RotateTransform@Graphics@Gdiplus@@QAE?AW4Status@2@MW4MatrixOrder@2@@
Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipCreateMetafileFro
mStream@8 sin resolver al que se hace referencia en la función "public: __thisca
ll Gdiplus::Metafile::Metafile(struct IStream *)" (??0Metafile@Gdiplus@@QAE@PAUI
Stream@@@Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipBitmapSetResoluti
on@12 sin resolver al que se hace referencia en la función "public: enum Gdiplus
::Status __thiscall Gdiplus::Bitmap::SetResolution(float,float)" (?SetResolution
@Bitmap@Gdiplus@@QAE?AW4Status@2@MM@Z)
FiveHCM.lib(GDIPLUS.obj) : error LNK2019: símbolo externo _GdipSetTextureWrapMod
e@8 sin resolver al que se hace referencia en la función "public: enum Gdiplus::
Status __thiscall Gdiplus::TextureBrush::SetWrapMode(enum Gdiplus::WrapMode)" (?
SetWrapMode@TextureBrush@Gdiplus@@QAE?AW4Status@2@W4WrapMode@2@@Z)
tutor01.exe : fatal error LNK1120: 167 externos sin resolver
* There are errors
Why is the error in Spanish? Can it be changed to English?
Thanks.