topic
stringlengths
1
63
text
stringlengths
1
577k
Compile Error using FW17.07 Harbour MinGW
[quote:30vu8cx5]We are going to update it, once we know what MinGW gcc version to use <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:30vu8cx5] Thank you!
Compile Error using FW17.07 Harbour MinGW
What MinGW gcc version are you using ? c:\MinGW\bin>gcc --version gcc (MinGW.org GCC-6.3.0-1) 6.3.0
Compile Error using FW17.07 Harbour MinGW
[quote:2z6gq1db]What MinGW gcc version are you using ?[/quote:2z6gq1db] It is difficult to answer, since we are using: * FWH (commercial product - and we have libs), * FRX (commercial component - we have libs), * LetoDB (open source - build it ourself) * OpenSSL and CURL (opensource , but not that easy to build) * Experimenting with LetoDBf (free, but libs only) * We also use QtContribs, but in separate instance (comes prebuilt) We need to have FRX, FWH, OpenSSL+CURL, LetoDB. Since FWH have C++ code (for GdiPlus), exception handling is also important - FWH uses DWARF, and FRX have no C++code, so DWARF dictates everything else. We had intention to use newest Harbour Nightly, and migrate code to it. But than we find out that HB Nightly builds are using SJLJ exception handling making it incompatible with FWH. It would be great to have binary download of MinGW FWH, with compiler and harbour. Only thing we must check is that it works with FRX (which is a small lib gluing external frx.dll) Other components, like curl and openssl and LetoDb we can build ourself with supplide compiler. So - GCC 6.3.0 is fine. It would be great to have both FWH and newish Harbour built with it, and use that as core development environment.
Compile Error using FW17.07 Harbour MinGW
[b:uutswqmw]Building Harbour with MinGW gcc 6.3.0[/b:uutswqmw] git clone <!-- m --><a class="postlink" href="https://github.com/harbour/core.git">https://github.com/harbour/core.git</a><!-- m --> harbour cd harbour gomingw.bat [code=fw:uutswqmw]<div class="fw" id="{CB}" style="font-family: monospace;">set path=c:\MinGW\bin<br />win-make</div>[/code:uutswqmw] Here you have it already built: [url:uutswqmw]https&#58;//bitbucket&#46;org/fivetech/harbour-xharbour-builds/downloads/harbour_MinGW_gcc_32bits_20170915&#46;zip[/url:uutswqmw]
Compile Error using FW17.07 Harbour MinGW
I have already emailed you the FWH libs for MinGW gcc 6.3.0
Compile Error using FW17.07 Harbour MinGW
I was getting the following error: [code=fw:19hxf2pw]<div class="fw" id="{CB}" style="font-family: monospace;">c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>+0xc7<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `operator <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>unsigned int<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0x1b9): undefined reference to `operator delete[](void*)'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>+0xb22<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__cxa_throw_bad_array_new_length<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xb2a): undefined reference to `operator new[](unsigned int)'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>+0xe13<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `operator <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>unsigned int<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xe9e): undefined reference to `operator delete(void*, unsigned int)'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>$_ZN13TActiveXEvent7ReleaseEv+0x3b<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `operator delete<span style="color: #000000;">&#40;</span>void*, unsigned int<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text$_ZN8TActiveX7ReleaseEv+0x49): undefined reference to `operator delete(void*, unsigned int)'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.rdata$_ZTV15IOleControlSite<span style="color: #000000;">&#91;</span>__ZTV15IOleControlSite<span style="color: #000000;">&#93;</span>+0x8<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__cxa_pure_virtual<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0xc): undefined reference to `__cxa_pure_virtual'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.rdata$_ZTV15IOleControlSite<span style="color: #000000;">&#91;</span>__ZTV15IOleControlSite<span style="color: #000000;">&#93;</span>+0x10<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__cxa_pure_virtual<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0x14): undefined reference to `__cxa_pure_virtual'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.rdata$_ZTV15IOleControlSite<span style="color: #000000;">&#91;</span>__ZTV15IOleControlSite<span style="color: #000000;">&#93;</span>+0x18<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__cxa_pure_virtual<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0x1c): more undefined references to `__cxa_pure_virtual'</span> follow<br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>ACTX.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ACTX</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.eh_frame+0x4f<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__gxx_personality_v0<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame+0x11f): undefined reference to `__gxx_personality_v0'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPFWH.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPFWH</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.eh_frame$_ZN7Gdiplus5ImageD2Ev+0x13<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__gxx_personality_v0<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus5ImageD1Ev+0x13): undefined reference to `__gxx_personality_v0'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPFWH.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPFWH</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.eh_frame$_ZN7Gdiplus13CustomLineCapD2Ev+0x13<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__gxx_personality_v0<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus13CustomLineCapD1Ev+0x13): more undefined references to `__gxx_personality_v0'</span> follow<br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPLUS.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPLUS</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>+0x2f6f<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `operator <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>unsigned int<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x4ef6): undefined reference to `operator new(unsigned int)'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPLUS.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPLUS</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>+0x50b2<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `operator delete<span style="color: #000000;">&#40;</span>void*, unsigned int<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x56fb): undefined reference to `operator new(unsigned int)'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPLUS.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPLUS</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>+0x5881<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `operator delete<span style="color: #000000;">&#40;</span>void*, unsigned int<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus15ImageAttributesD1Ev+0x13): undefined reference to `__gxx_personality_v0'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPLUS.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPLUS</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_4RectERKNS_5ColorES6_NS_18LinearGradientModeE+0x13<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__gxx_personality_v0<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_4RectERKNS_5ColorES6_fi+0x13): undefined reference to `__gxx_personality_v0'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPLUS.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPLUS</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.eh_frame$_ZN7Gdiplus8MetafileC1EP7IStream+0x13<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `__gxx_personality_v0<span style="color: #ff0000;">'<br />c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus17PathGradientBrushC1EPKNS_12GraphicsPathE+0x13): undefined reference to `__gxx_personality_v0'</span><br />c:/fwh/lib/fivehgc.lib<span style="color: #000000;">&#40;</span>GDIPLUS.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">GDIPLUS</span>.CPP:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.eh_frame$_ZN7Gdiplus8Graphics9FromImageEPNS_5ImageE+0x13<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">more</span> undefined references <span style="color: #0000ff;">to</span> `__gxx_personality_v0<span style="color: #ff0000;">' follow<br />collect2.exe: error: ld returned 1 exit status<br />hbmk2[sampleDashBoard]: Error: Running linker. 1<br />c:<span style="color: #000000;">\h</span>b32<span style="color: #000000;">\c</span>omp<span style="color: #000000;">\m</span>ingw<span style="color: #000000;">\b</span>in<span style="color: #000000;">\g</span>cc.exe OBJ/sampledashboard.o OBJ/_hbmkaut_sampledashboard.o    -mconsole -Wl,--start-group -lhbct -lhbhpdf -lgtstd -lhbmainstd -lhbmisc -lhbmzip -lhbnf -lhbodbc -lodbc32 -lhbsqlit3 -lhbtip -lhbwin -lxhb -lhbwin -lhbtip -lhbct -lhbgt -lhbmisc -lhbnf -lhbziparc -lhbcomm -lhbmzip -lhbformat -lgtwvt -lgtwvg -lrddbm -lxhb -lminizip -loleaut32 -limm32 -lversion -lgdi32 -lgdiplus -loledlg -lkernel32 -luser32 -lole32 -lfivehg -lfivehgc -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib   -Wl,--end-group -osampledashboard.exe  -Lc:/hb32/lib/win/mingw -Lc:/fwh/lib<br /><br />-llibstdc++<br /></span></div>[/code:19hxf2pw] Fix the problem adding the library libstdc++. -llibstdc++
Compile Error using FW17.07 xHarbour MSVC2015
Dear All, 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=fw:34b31zuf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ECHO OFF<br />CLS<br />ECHO <br /><br />ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">17.07</span> <span style="color: #000000;">&#40;</span>MSVC++<span style="color: #000000;">&#41;</span> July <span style="color: #000000;">2017</span>    xHarbour development <br /><br /><span style="color: #0000ff;">power</span> ³Ü<br />ECHO ³ <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2017</span>    <span style="color: #00C800;">for</span> Microsoft Windows <br /><br />9x/NT/<span style="color: #000000;">2000</span>/ME/XP/Vista/<span style="color: #000000;">7</span>/<span style="color: #000000;">8</span> ³Û<br />ECHO <br /><br />ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ<br /><br />Û<br />ECHO ÿ <br /><br />ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<br /><br /><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br />ECHO Compiling...<br /><br />set hdir=D:\xhb_fw_msvc15\xhb10205<br />set vcdir=D:\xhb_fw_msvc15\vc2015<br />set include=%vcdir%\include;%hdir%\include;%include%<br />set lib=%vcdir%\lib;%hdir%\vc\lib;%lib%<br /><br />%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i..\include;%hdir%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > clip.log <span style="color: #000000;">2</span>> <br /><br />warnings.log<br />@type clip.log<br />@type warnings.log<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> <span style="color: #00C800;">PAUSE</span><br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO EXIT<br /><br />%vcdir%\bin\cl -TP -W3 -c /GA %<span style="color: #000000;">1</span>.c<br />:<span style="color: #000000;">ENDCOMPILE</span><br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.rc %vcdir%\sdk\bin\rc -r -d__FLAT__ %<span style="color: #000000;">1</span><br /><br />echo %<span style="color: #000000;">1</span>.obj  > msvc.tmp<br /><br />echo D:\xhb_fw_msvc15\fw1707\lib\Fivehmx.lib  >> msvc.tmp<br />echo D:\xhb_fw_msvc15\fw1707\lib\FiveHCM.lib  >> msvc.tmp<br /><br />echo %hdir%\lib\rtl.lib  >> msvc.tmp<br />echo %hdir%\lib\vm.lib  >> msvc.tmp<br />echo %hdir%\lib\gtgui.lib  >> msvc.tmp<br />echo %hdir%\lib\lang.lib  >> msvc.tmp<br />echo %hdir%\lib\macro.lib  >> msvc.tmp<br />echo %hdir%\lib\rdd.lib  >> msvc.tmp<br />echo %hdir%\lib\dbfntx.lib  >> msvc.tmp<br />echo %hdir%\lib\dbfcdx.lib  >> msvc.tmp<br />echo %hdir%\lib\dbffpt.lib  >> msvc.tmp<br />echo %hdir%\lib\hbsix.lib  >> msvc.tmp<br />echo %hdir%\lib\debug.lib  >> msvc.tmp<br />echo %hdir%\lib\common.lib  >> msvc.tmp<br />echo %hdir%\lib\pp.lib  >> msvc.tmp<br />echo %hdir%\lib\pcrepos.lib  >> msvc.tmp<br /><br />rem echo c:\harbour\lib\vc98\png.lib  >> msvc.tmp<br />rem echo c:\harbour\lib\vc98\hbzlib.lib  >> msvc.tmp<br /><br />rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />rem echo %hdir%\lib\vc\rddads.lib >> msvc.tmp<br />rem echo %hdir%\lib\vc\ace32.lib >> msvc.tmp<br /><br />rem echo %vcdir%\lib\msvcrt.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\kernel32.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\user32.lib    >> msvc.tmp<br />echo %vcdir%\sdk\lib\gdi32.lib     >> msvc.tmp<br />echo %vcdir%\sdk\lib\winspool.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\comctl32.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\comdlg32.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\advapi32.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\shell32.lib   >> msvc.tmp<br />echo %vcdir%\sdk\lib\ole32.lib     >> msvc.tmp<br />echo %vcdir%\sdk\lib\oleaut32.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\uuid.lib      >> msvc.tmp<br />echo %vcdir%\sdk\lib\odbc32.lib    >> msvc.tmp<br />echo %vcdir%\sdk\lib\odbccp32.lib  >> msvc.tmp<br />echo %vcdir%\sdk\lib\mpr.lib       >> msvc.tmp<br />echo %vcdir%\sdk\lib\msimg32.lib   >> msvc.tmp<br />echo %vcdir%\sdk\lib\oledlg.lib    >> msvc.tmp<br />echo %vcdir%\sdk\lib\psapi.lib    >> msvc.tmp<br />echo %vcdir%\sdk\lib\version.lib   >> msvc.tmp<br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.res echo %<span style="color: #000000;">1</span>.res >> msvc.tmp<br /><br />%vcdir%\bin\link @msvc.tmp /NODEFAULTLIB:<span style="color: #000000;">LIBC</span> /nologo /subsystem:<span style="color: #000000;">windows</span> <br /><br />/force:<span style="color: #000000;">multiple</span><br /><br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br />ECHO * Application successfully built<br />%<span style="color: #000000;">1</span><br />GOTO EXIT<br />ECHO<br /><br />rem delete temporary files<br />@del %<span style="color: #000000;">1</span>.c<br />@del msvc.tmp<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * There are errors<br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br />ECHO    SYNTAX: <span style="color: #000000;">Build</span> <span style="color: #000000;">&#91;</span>Program<span style="color: #000000;">&#93;</span>     <span style="color: #000000;">&#123;</span>-- No especifiques la extensión PRG<br />ECHO                                <span style="color: #000000;">&#123;</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT<br /></span></div>[/code:34b31zuf] I use [b:34b31zuf][i:34b31zuf]fivehmx.lib[/i:34b31zuf][/b:34b31zuf] and [b:34b31zuf][i:34b31zuf]fivehcm.lib[/i:34b31zuf][/b:34b31zuf] 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=fw:34b31zuf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipBitmapSetPixel@<span style="color: #000000;">16</span><br /> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdiplus::Sta<br />tus __thiscall Gdiplus::Bitmap::SetPixel(int,int,class Gdiplus::Color const &)"</span><br /><span style="color: #000000;">&#40;</span>?SetPixel@Bitmap@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@HHABVColor@<span style="color: #000000;">2</span>@@Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipCreateHICONFromBi<br />tmap@<span style="color: #000000;">8</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdiplu<br />s::Status __thiscall Gdiplus::Bitmap::GetHICON(struct HICON__ * *)"</span> <span style="color: #000000;">&#40;</span>?GetHICON@B<br />itmap@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@PAPAUHICON__@@@Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipDisposeImageAttri<br />butes@<span style="color: #000000;">4</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: __thiscall<br /> Gdiplus::ImageAttributes::~ImageAttributes(void)"</span> <span style="color: #000000;">&#40;</span>??1ImageAttributes@Gdiplus@@<br />QAE@XZ<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipSetInterpolationM<br />ode@<span style="color: #000000;">8</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdiplus<br />::Status __thiscall Gdiplus::Graphics::SetInterpolationMode(enum Gdiplus::Interp<br />olationMode)"</span> <span style="color: #000000;">&#40;</span>?SetInterpolationMode@Graphics@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@W4Interpo<br />lationMode@<span style="color: #000000;">2</span>@@Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipTranslateWorldTra<br />nsform@<span style="color: #000000;">16</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdi<br />plus::Status __thiscall Gdiplus::Graphics::TranslateTransform(float,float,enum G<br />diplus::MatrixOrder)"</span> <span style="color: #000000;">&#40;</span>?TranslateTransform@Graphics@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@MMW<br />4MatrixOrder@<span style="color: #000000;">2</span>@@Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipScaleWorldTransfo<br />rm@<span style="color: #000000;">16</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdiplus<br />::Status __thiscall Gdiplus::Graphics::ScaleTransform(float,float,enum Gdiplus::<br />MatrixOrder)"</span> <span style="color: #000000;">&#40;</span>?ScaleTransform@Graphics@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@MMW4MatrixOrder<br />@<span style="color: #000000;">2</span>@@Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipRotateWorldTransf<br />orm@<span style="color: #000000;">12</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdiplu<br />s::Status __thiscall Gdiplus::Graphics::RotateTransform(float,enum Gdiplus::Matr<br />ixOrder)"</span> <span style="color: #000000;">&#40;</span>?RotateTransform@Graphics@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@MW4MatrixOrder@<span style="color: #000000;">2</span>@@<br />Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipCreateMetafileFro<br />mStream@<span style="color: #000000;">8</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: __thisca<br />ll Gdiplus::Metafile::Metafile(struct IStream *)"</span> <span style="color: #000000;">&#40;</span>??0Metafile@Gdiplus@@QAE@PAUI<br />Stream@@@Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipBitmapSetResoluti<br /><span style="color: #0000ff;">on</span>@<span style="color: #000000;">12</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdiplus<br />::Status __thiscall Gdiplus::Bitmap::SetResolution(float,float)"</span> <span style="color: #000000;">&#40;</span>?SetResolution<br />@Bitmap@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@MM@Z<span style="color: #000000;">&#41;</span><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>GDIPLUS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GdipSetTextureWrapMod<br />e@<span style="color: #000000;">8</span> <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función <span style="color: #ff0000;">"public: enum Gdiplus::<br />Status __thiscall Gdiplus::TextureBrush::SetWrapMode(enum Gdiplus::WrapMode)"</span> <span style="color: #000000;">&#40;</span>?<br />SetWrapMode@TextureBrush@Gdiplus@@QAE?AW4Status@<span style="color: #000000;">2</span>@W4WrapMode@<span style="color: #000000;">2</span>@@Z<span style="color: #000000;">&#41;</span><br />tutor01.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">167</span> externos <span style="color: #0000ff;">sin</span> resolver<br />* There are errors<br /> </div>[/code:34b31zuf] Why is the error in Spanish? Can it be changed to English? Thanks.
Compile Error using FW17.07 xHarbour MSVC2015
You have to link gdiplus.lib from MSVC Those errors come from the Microsoft linker. Surely you may have installed an spanish version instead of the english one, or it may be a setting of MSVC
Compile Error using FW17.07 xHarbour MSVC2015
[quote="Antonio Linares":n1t0e8y1]You have to link gdiplus.lib from MSVC Those errors come from the Microsoft linker. Surely you may have installed an spanish version instead of the english one, or it may be a setting of MSVC[/quote:n1t0e8y1] Already link to gdiplus.lib but now I get this error. [code=fw:n1t0e8y1]<div class="fw" id="{CB}" style="font-family: monospace;">??????????????????????????????????????????????????????????????????????????????<br />? FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">17.07</span> <span style="color: #000000;">&#40;</span>MSVC++<span style="color: #000000;">&#41;</span> July <span style="color: #000000;">2017</span>    xHarbour development <span style="color: #0000ff;">power</span> ??<br /><br />? <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2017</span>    <span style="color: #00C800;">for</span> Microsoft Windows 9x/NT/<span style="color: #000000;">2000</span>/ME/XP/Vista/<span style="color: #000000;">7</span>/<span style="color: #000000;">8</span> ??<br /><br />???????????????????????????????????????????????????????????????????????????????<br />  ?????????????????????????????????????????????????????????????????????????????<br />Compiling...<br />xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20170902</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">1999</span><span style="color: #000000;">-2017</span>, http:<span style="color: #B900B9;">//www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style="color: #ff0000;">'tutor01.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor01.ppo'</span>...<br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor01.c'</span>...<br />Done.<br />Lines <span style="color: #000000;">13</span>, Functions/Procedures <span style="color: #000000;">1</span>, pCodes <span style="color: #000000;">14</span><br />Compilador de optimización de C/C++ de Microsoft <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> versión <span style="color: #000000;">19.00</span><span style="color: #000000;">.24215</span><span style="color: #000000;">.1</span> para<br />x86<br /><span style="color: #000000;">&#40;</span>C<span style="color: #000000;">&#41;</span> Microsoft Corporation. Reservados todos los derechos.<br /><br />tutor01.c<br />Microsoft <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Windows <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Resource</span> Compiler Version <span style="color: #000000;">6.1</span><span style="color: #000000;">.7600</span><span style="color: #000000;">.16385</span><br />Copyright <span style="color: #000000;">&#40;</span>C<span style="color: #000000;">&#41;</span> Microsoft Corporation.  All rights reserved.<br /><br />libucrt.lib<span style="color: #000000;">&#40;</span>pow.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> LNK4006: __CIpow ya se definió en Fivehmx.lib<span style="color: #000000;">&#40;</span>HAR<br />BOUR.obj<span style="color: #000000;">&#41;</span>; segunda definición omitida<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>VALBLANK.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_REMRIGHT <span style="color: #0000ff;">sin</span><br />resolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>PDMENU.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_NUMAT <span style="color: #0000ff;">sin</span> resol<br />ver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">MENUITEM</span>.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_NUMAT <span style="color: #0000ff;">sin</span> res<br />olver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">FONT</span>.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_EXENAME <span style="color: #0000ff;">sin</span> resol<br />ver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>IMGTXTIO.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_EXENAME <span style="color: #0000ff;">sin</span> r<br />esolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>ADOFUNCS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_EXENAME <span style="color: #0000ff;">sin</span> r<br />esolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>IMGTXTIO.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_CEILING <span style="color: #0000ff;">sin</span> r<br />esolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">XBROWSE</span>.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_CEILING <span style="color: #0000ff;">sin</span> re<br />solver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>IMGTXTIO.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_CHARONE <span style="color: #0000ff;">sin</span> r<br />esolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">XBROWSE</span>.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_CHARONE <span style="color: #0000ff;">sin</span> re<br />solver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>ADOFUNCS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_CHARONE <span style="color: #0000ff;">sin</span> r<br />esolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>ADOFUNCS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_AFTERATNUM si<br />n resolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>DATAROW.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_AFTERATNUM <span style="color: #0000ff;">sin</span><br /> resolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>PGSUPORT.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_AFTERATNUM si<br />n resolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>IMGTXTIO.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_AFTERATNUM si</div>[/code:n1t0e8y1]
Compile Error using FW17.07 xHarbour MSVC2015
You have to link xharbour ct.lib To find a library is very easy: 1. Go to the folder where the xHarbour libraries are 2. Use a tool to search for a text in all the files. I use Total Commander for this <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compile Error using FW17.07 xHarbour MSVC2015
[quote="Antonio Linares":1gjkkqbl]You have to link xharbour ct.lib To find a library is very easy: 1. Go to the folder where the xHarbour libraries are 2. Use a tool to search for a text in all the files. I use Total Commander for this <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1gjkkqbl] [code=fw:1gjkkqbl]<div class="fw" id="{CB}" style="font-family: monospace;">libucrt.lib<span style="color: #000000;">&#40;</span>pow.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> LNK4006: __CIpow ya se definió en Fivehmx.lib<span style="color: #000000;">&#40;</span>HAR<br />BOUR.obj<span style="color: #000000;">&#41;</span>; segunda definición omitida<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>VALBLANK.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_REMRIGHT <span style="color: #0000ff;">sin</span><br />resolver<br /> </div>[/code:1gjkkqbl] How do know which lib to include just from the error message? What do you actually search for? For example: the error from above, what do you search for? valblank.obj or fun_remright? Now, I get the following error after I link the ct.lib. [code=fw:1gjkkqbl]<div class="fw" id="{CB}" style="font-family: monospace;">xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20170902</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">1999</span><span style="color: #000000;">-2017</span>, http:<span style="color: #B900B9;">//www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style="color: #ff0000;">'tutor01.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor01.ppo'</span>...<br /><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor01.c'</span>...<br />Done.<br /><br />Lines <span style="color: #000000;">13</span>, Functions/Procedures <span style="color: #000000;">1</span>, pCodes <span style="color: #000000;">14</span><br />tutor01.c<br />Microsoft <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Windows <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Resource</span> Compiler Version <span style="color: #000000;">6.1</span><span style="color: #000000;">.7600</span><span style="color: #000000;">.16385</span><br /><br />Copyright <span style="color: #000000;">&#40;</span>C<span style="color: #000000;">&#41;</span> Microsoft Corporation.  All rights reserved.<br /><br /><br />Fivehmx.lib<span style="color: #000000;">&#40;</span>OLEFUNCS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_HB_UNZIPFILE <span style="color: #0000ff;">sin</span> resolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>OLEFUNCS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_HB_GETFILESINZIP <span style="color: #0000ff;">sin</span> resolver<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>KEYBRD.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _SendInput <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_SENDKEY<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>MENUDRAW.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetMenuInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_HBMPBACK<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>MENUDRAW.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _SetMenuInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _hSetbmpback<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>MENUDRAW.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetWindowLongPtr <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_CCOLORMENU<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>MENUDRAW.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetMenuBarInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_MINFOMIMENU<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>NONCLIENT.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetComboBoxInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_HWNDCOMBO<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>NONCLIENT.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetListBoxInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_NGETLISTBOXINFO<br />tutor01.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">9</span> externos <span style="color: #0000ff;">sin</span> resolver<br /> </div>[/code:1gjkkqbl]
Compile Error using FW17.07 xHarbour MSVC2015
[quote="teddydjohan":3gjfs06e]How do know which lib to include just from the error message? What do you actually search for? For example: the error from above, what do you search for? valblank.obj or fun_remright?[/quote:3gjfs06e] Search your hard disk for all the *.lib files containing the word REMRIGHT (or VALBLANK). Don't add .OBJ or FUN_ or you will find nothing. EMG
Compile Error using FW17.07 xHarbour MSVC2015
Teddy, Please link this library too: [url:lx4ox7n4]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/xfw&#46;lib[/url:lx4ox7n4]
Compile Error using FW17.07 xHarbour MSVC2015
[quote="Antonio Linares":imnmtgl1]Teddy, Please link this library too: [url:imnmtgl1]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/xfw&#46;lib[/url:imnmtgl1][/quote:imnmtgl1] Antonio, I downloaded the xfw.lib and linked it. Now, it is down to 5 errors. What library files do I need to link now? Thank you. [code=fw:imnmtgl1]<div class="fw" id="{CB}" style="font-family: monospace;">xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20170902</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">1999</span><span style="color: #000000;">-2017</span>, http:<span style="color: #B900B9;">//www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style="color: #ff0000;">'tutor01.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor01.ppo'</span>...<br /><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor01.c'</span>...<br />Done.<br /><br />Lines <span style="color: #000000;">13</span>, Functions/Procedures <span style="color: #000000;">1</span>, pCodes <span style="color: #000000;">14</span><br />tutor01.c<br />Microsoft <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Windows <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Resource</span> Compiler Version <span style="color: #000000;">6.1</span><span style="color: #000000;">.7600</span><span style="color: #000000;">.16385</span><br /><br />Copyright <span style="color: #000000;">&#40;</span>C<span style="color: #000000;">&#41;</span> Microsoft Corporation. &nbsp;All rights reserved.<br /><br /><br />Fivehmx.lib<span style="color: #000000;">&#40;</span>OLEFUNCS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_HB_UNZIPFILE <span style="color: #0000ff;">sin</span> resolver<br />Fivehmx.lib<span style="color: #000000;">&#40;</span>OLEFUNCS.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_HB_GETFILESINZIP <span style="color: #0000ff;">sin</span> resolver<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>KEYBRD.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _SendInput <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_SENDKEY<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>NONCLIENT.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetComboBoxInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_HWNDCOMBO<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>NONCLIENT.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetListBoxInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_NGETLISTBOXINFO<br />tutor01.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">5</span> externos <span style="color: #0000ff;">sin</span> resolver</div>[/code:imnmtgl1]
Compile Error using FW17.07 xHarbour MSVC2015
You have to link these libraries too: [url:vxe7y85j]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/mem32&#46;lib[/url:vxe7y85j] [url:vxe7y85j]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/send32&#46;lib[/url:vxe7y85j] Also xHarbour hbzip.lib
Compile Error using FW17.07 xHarbour MSVC2015
[quote="Antonio Linares":1hw089sm]You have to link these libraries too: [url:1hw089sm]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/mem32&#46;lib[/url:1hw089sm] [url:1hw089sm]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/send32&#46;lib[/url:1hw089sm] Also xHarbour hbzip.lib[/quote:1hw089sm] Antonio, Downloaded and linked the above library files but still error out as follow: [code=fw:1hw089sm]<div class="fw" id="{CB}" style="font-family: monospace;">xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20170902</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">1999</span><span style="color: #000000;">-2017</span>, http:<span style="color: #B900B9;">//www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style="color: #ff0000;">'tutor03.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor03.ppo'</span>...<br /><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor03.c'</span>...<br />Done.<br /><br />Lines <span style="color: #000000;">26</span>, Functions/Procedures <span style="color: #000000;">1</span>, pCodes <span style="color: #000000;">120</span><br />tutor03.c<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>NONCLIENT.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetComboBoxInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_HWNDCOMBO<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>NONCLIENT.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">s</span>ímbolo externo _GetListBoxInfo <span style="color: #0000ff;">sin</span> resolver al que se hace referencia en la función _HB_FUN_NGETLISTBOXINFO<br />tutor03.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">2</span> externos <span style="color: #0000ff;">sin</span> resolver</div>[/code:1hw089sm] I am getting confused. Those additional library files that you asked me to download, they are not part of FiveWin or XHarbour binary package? How can I know which addtional library files I need to search and add to the my FiveWin or xHarbour package? I am currently using the binary packages I downloaded from Mel Smith in whosaway.com. Those files are: - xhb10205_msvc15.zip - vc2015.zip and I am currently using FiveWin 17.07 I tested out the xhb10205_bcc58 version from Mel Smith and it compile and builds the samples program successfully. Seems like it is easier to use the BCC version. Guys, Any info for me to resolve this issue? Thanks.
Compile Errors
Hi, I am trying to compile the following (FWH / xHarbour) and I get some errors. Is there something I am missing?? [code=fw:13wy5kes]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  CheckIt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> CheckIt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cArray := FillArray<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, aInfo<br /><br />   <span style="color: #00C800;">if</span> Fddig1<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">7</span><br />      MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No Key drive in the USB port!"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">endif</span><br /><br />   Accdd1<span style="color: #000000;">&#40;</span> cArray <span style="color: #000000;">&#41;</span><br />   aInfo = GetValues<span style="color: #000000;">&#40;</span> cArray <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> aInfo<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"LicType"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> aInfo<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"TokenId1"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> aInfo<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"TokenId3"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />DLL <span style="color: #00C800;">FUNCTION</span> ACCDD1<span style="color: #000000;">&#40;</span> pValues AS LPSTR <span style="color: #000000;">&#41;</span> AS VOID PASCAL ;<br /><span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"Accdd1"</span> LIB <span style="color: #ff0000;">"Aas973.dll"</span><br /><br />DLL <span style="color: #00C800;">FUNCTION</span> FDDIG1<span style="color: #000000;">&#40;</span> nVal AS LONG <span style="color: #000000;">&#41;</span> AS LONG PASCAL ;<br /><span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"Fddig1"</span> LIB <span style="color: #ff0000;">"Aas973.dll"</span><br /><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br /><br /><br /><br /><span style="color: #00C800;">static</span> LONG accm<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">&#123;</span><br />    <span style="color: #000000;">0</span>,<br />    0x313628FA,<br />    0x7F03F6E4,<br />    0x6589E678,<br />    0x1654265F,<br />    0x066E3FE0,<br />    0x7C1B0162,<br />    0x7C5612EE,<br />    0x62EDDCAD,<br />    0x69DF0765<br /><span style="color: #000000;">&#125;</span>;<br /><br /><br /><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FILLARRAY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   LONG acck<span style="color: #000000;">&#91;</span> <span style="color: #000000;">100</span> <span style="color: #000000;">&#93;</span>;<br />   LONG accNa, accUr;<br />   int i;<br /><br />   srand<span style="color: #000000;">&#40;</span> GetTickCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   accUr = rand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> i = <span style="color: #000000;">1</span>; i < <span style="color: #000000;">100</span>; i++ <span style="color: #000000;">&#41;</span><br />     acck<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> = rand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> i = <span style="color: #000000;">1</span>; i < <span style="color: #000000;">100</span>; i++ <span style="color: #000000;">&#41;</span><br />     accUr = acck<span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#40;</span> acck<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> ^ <span style="color: #000000;">&#40;</span> accUr & 0x0ff <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">99</span> <span style="color: #000000;">&#93;</span> ^ <span style="color: #000000;">&#40;</span> accUr >> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br /><br />   accUr = <span style="color: #000000;">&#40;</span> accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> ^ accUr <span style="color: #000000;">&#41;</span> & 0x0ffff;<br /><br />   hb_retclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> acck, <span style="color: #000000;">100</span> * sizeof<span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETVALUES <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   LONG * acck = <span style="color: #000000;">&#40;</span> LONG * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   LONG accr1, accr2, accr3, accr4;<br />   LONG accNa, accUr;<br />   LONG LicType, TokenId1, TokenId2;<br />   BOOL OrigDrive;<br /><br />   accNa = <span style="color: #000000;">&#40;</span> acck<span style="color: #000000;">&#91;</span> <span style="color: #000000;">99</span> <span style="color: #000000;">&#93;</span> ^ accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> & <span style="color: #000000;">1061109567</span>;<br />   accr1 = accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ^ acck<span style="color: #000000;">&#91;</span> LOBYTE<span style="color: #000000;">&#40;</span> LOWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />   accr2 = accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> ^ acck<span style="color: #000000;">&#91;</span> HIBYTE<span style="color: #000000;">&#40;</span> LOWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />   accr3 = accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> ^ acck<span style="color: #000000;">&#91;</span> LOBYTE<span style="color: #000000;">&#40;</span> HIWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />   accr4 = accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> ^ acck<span style="color: #000000;">&#91;</span> HIBYTE<span style="color: #000000;">&#40;</span> HIWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br /><br />   OrigDrive = accr4 == <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> accr2 - ~accr1 / accUr <span style="color: #000000;">&#41;</span> ^ accr3 <span style="color: #000000;">&#41;</span> - accUr <span style="color: #000000;">&#41;</span>;<br />   LicType = TokenId1 = TokenId2 = <span style="color: #000000;">0</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> OrigDrive <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      LicType = acck<span style="color: #000000;">&#91;</span> <span style="color: #000000;">64</span> + <span style="color: #000000;">&#40;</span> HIBYTE<span style="color: #000000;">&#40;</span> HIWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span> ^ acck<span style="color: #000000;">&#91;</span> LOBYTE<span style="color: #000000;">&#40;</span> LOWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> LicType == <span style="color: #000000;">&#40;</span> accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ^ accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> ^ accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> ^ accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         LicType = <span style="color: #000000;">1</span>;<br />      <span style="color: #00C800;">else</span><br />            <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> LicType == <span style="color: #000000;">&#40;</span> accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ^ accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> ^ accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> ^ accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />               LicType = <span style="color: #000000;">2</span>;<br />            <span style="color: #00C800;">else</span><br />                LicType = <span style="color: #000000;">0</span>;<br /><br />         TokenId1 = accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> ^ acck<span style="color: #000000;">&#91;</span> LOBYTE<span style="color: #000000;">&#40;</span> LOWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>;<br />         TokenId2 = accm<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span> ^ acck<span style="color: #000000;">&#91;</span> HIBYTE<span style="color: #000000;">&#40;</span> LOWORD<span style="color: #000000;">&#40;</span> accNa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>;<br /><br />      hb_storvnl<span style="color: #000000;">&#40;</span> LicType, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />      hb_storvnl<span style="color: #000000;">&#40;</span> TokenId1, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />      hb_storvnl<span style="color: #000000;">&#40;</span> TokenId2, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />      hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />      hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><br /> </div>[/code:13wy5kes] Errors: [list:13wy5kes]Compiling... xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406) Copyright 1999-2009, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'demo2.prg' and generating preprocessed output to 'demo2.ppo'... Lines 33, Functions/Procedures 4 Generating C source output to 'demo2.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland demo2.c: Warning W8004 demo2.prg 75: 'accUr' is assigned a value that is never used in fu nction HB_FUN_FILLARRAY Warning W8065 demo2.prg 113: Call to function 'hb_storvnl' with no prototype in function HB_FUN_GETVALUES Warning W8065 demo2.prg 114: Call to function 'hb_storvnl' with no prototype in function HB_FUN_GETVALUES Warning W8065 demo2.prg 115: Call to function 'hb_storvnl' with no prototype in function HB_FUN_GETVALUES Warning W8065 demo2.prg 119: Call to function 'hb_storvnl' with no prototype in function HB_FUN_GETVALUES Warning W8065 demo2.prg 120: Call to function 'hb_storvnl' with no prototype in function HB_FUN_GETVALUES Warning W8065 demo2.prg 121: Call to function 'hb_storvnl' with no prototype in function HB_FUN_GETVALUES Warning W8004 demo2.prg 95: 'LicType' is assigned a value that is never used in function HB_FUN_GETVALUES Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_hb_storvnl' referenced from C:\TEST\DEMO2.OBJ * Linking errors * C:\Test>[/list:u:13wy5kes]
Compile Errors
Jeff, please try to use hb_stornl instead of hb_storvnl .
Compile Errors
I am trying to switch from xHarbour to Harbour so I can use the scripting ability of Harbour. Using the ..\samples\BuildH.bat to compile and I get the following compiler errors. What am I missing? [quote:19zcmc3i] Compiling... Harbour 3.0.0 (Rev. 16951) Copyright (c) 1999-2011, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m --> Compiling 'ScanTest.prg' and generating preprocessed output to 'ScanTest.ppo'... Lines 5471, Functions/Procedures 3 Generating C source output to 'ScanTest.c'... Done. Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc. ScanTest.c: Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc. Error: Unresolved external '_HB_FUN_HB_BLEN' referenced from C:\FWH1611\LIB\FIVEH.LIB|OLEFUNCS Error: Unresolved external '_HB_FUN___OLEVARIANTNEW' referenced from C:\FWH1611\LIB\FIVEH.LIB|ADOFUNCS Error: Unresolved external '_HB_FUN_OCCURS' referenced from C:\FWH1611\LIB\FIVEH.LIB|XBROWSE Error: Unresolved external '_hb_extIsNil' referenced from C:\FWH1611\LIB\FIVEHC.LIB|RICHEDIT Error: Unresolved external '_HB_FUN_HB_TSTOUTC' referenced from C:\FWH1611\LIB\FIVEH.LIB|VALTOSTR Error: Unable to perform link * Linking errors * [/quote:19zcmc3i]
Compile Errors
Please ignore this post. I have solved the problem. I reinstalled Harbour from [url:189slp6a]https&#58;//bitbucket&#46;org/fivetech/harbour-xharbour-builds/downloads/[/url:189slp6a] and ow it compiles <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Compile Errors
very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compile Fivehcm.lib
How is possible to compile the FiveHcm.lib? Thank you Riccardo
Compile Fivehcm.lib
Riccardo, You may add or replace modules in FiveHcm.lib this way: c:\vc\bin\Lib Fivehcm.lib /OUT:lib\Fivehcm.lib <module.obj> Anyhow, you can not entirely rebuild it as we don't provide the source code for all its modules.
Compile Question
HI, This may be a very stupid question <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> but i am working on a new application and wanted to have multiple prg files to separate different aspects of the program. The last application I wrote has everything in one prg file. How do I compile my application to include all the different prg files? Currently I use the buildx.bat sample (slightly modified) to build my single prg application ... works well but I'm not sure where I would add the additional prg's for my new app.
Compile Question
Hello Jeff, have a look at : <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=19848">viewtopic.php?f=3&t=19848</a><!-- l --> Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Compile Question
HI On several occasions I have seen this question from people who have some experience, I am a complete novice but when I compile my application with many *. prg I do the following at the end of each / / *********** ************************************************** ** # Include "combo5.prg" # Include "combo6.prg" # Include "vrd.prg" # Include "vrditem.prg" # Include "vrdbcode.prg" and the compiler just say the name of the first prg Greetings Jairo
Compile Question
Jeff, look in the dir FWH\MAKES for some samples if you want to do it manually or use a tool such as xMate
Compile Question
Thanks Uwe / Jairo. Never even thought of trying an #include. Works perfectly <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Compile Question
I think using the #include method would force it to compile all of the prg(s) no matter which one you changed. It would be better to setup one of the make utilities so that it only need to compile the prg(s) that has changed. I use the commercial xHarbour.com builder for this. xMate is another.
Compile Question
Jeff: Pls, use VERCE 5.0+, it can to compile and to link several prgs, several resources files (.RC or .RES) and to compress the .EXE file. If you want a copy let me know it. Regards
Compile Question
Hi Armando, I would like to try VERCE. Could you please post a link where I could download it?
Compile Question
Jeff, xMate and hbIDE are also very good alternative IDE´s to handle sourcefiles.
Compile Question
Jeff: Pls give me an email address. Regards
Compile Question
Hi Armando, Please use: jeff at can-soft.net Thanks <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Compile Questions.
Well, I finally had time tonight to start playing with UEStudio and FWH, but I didn't get far. Here is the sample code" #include "FiveWin.ch" function Main() local oWnd DEFINE WINDOW oWnd TITLE "Test" ACTIVATE WINDOW oWnd return nil #include <winapi.ch> When I go to compile the application, I get the following message: Any suggestions on what I missed while setting up? --------------------Configuration: Hello - Debug-------------------- Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland main.c: Error E2209 c:\Harbour\INCLUDE\hbdefs.h 56: Unable to open include file 'stdarg.h' Error E2209 c:\Harbour\INCLUDE\hbdefs.h 57: Unable to open include file 'stdio.h' Error E2209 c:\Harbour\INCLUDE\hbdefs.h 58: Unable to open include file 'stdlib.h' Error E2209 c:\Harbour\INCLUDE\hbdefs.h 59: Unable to open include file 'string.h' Error E2209 c:\Harbour\INCLUDE\hbdefs.h 60: Unable to open include file 'limits.h' Error E2209 c:\Harbour\INCLUDE\hbsetup.h 56: Unable to open include file 'limits.h' Error E2141 c:\Harbour\INCLUDE\hbwince.h 184: Declaration syntax error Error E2293 c:\Harbour\INCLUDE\hbwince.h 185: ) expected Error E2141 c:\Harbour\INCLUDE\hbwince.h 186: Declaration syntax error Error E2293 c:\Harbour\INCLUDE\hbwince.h 187: ) expected Error E2147 c:\Harbour\INCLUDE\hbwince.h 188: 'wchar_t' cannot start a parameter declaration Error E2147 c:\Harbour\INCLUDE\hbwince.h 189: 'wchar_t' cannot start a parameter declaration Error E2293 c:\Harbour\INCLUDE\hbwince.h 190: ) expected Error E2293 c:\Harbour\INCLUDE\hbdefs.h 485: ) expected Error E2188 c:\Harbour\INCLUDE\hbdefs.h 491: Expression syntax Error E2257 c:\Harbour\INCLUDE\hbdefs.h 523: , expected Error E2451 main.c 21: Undefined symbol 'NULL' Error E2141 main.c 21: Declaration syntax error Error E2190 main.c 21: Unexpected } Error E2190 main.c 21: Unexpected } Error E2040 main.c 21: Declaration terminated incorrectly Error E2190 main.c 38: Unexpected } Error E2190 main.c 38: Unexpected } Error E2109 main.c 38: Not an allowed type in function hb_vm_SymbolInit_MAIN *** 24 errors in Compile *** Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Fatal: Unable to open file 'C0W32.OBJ' Hello.EXE - 25 error(s), 0 warning(s)
Compile Questions.
please remove the last line (#include <winapi.h>) and then compile Regards Anser
Compile Questions.
Michel, You have to create two Borland setup files. It is described here: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=13098">viewtopic.php?f=17&t=13098</a><!-- l -->
Compile Questions.
Thank you both. Once I made those changes it compiled just beautifully. I'm very happy. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Compile Questions.
Hello Antonio: I'm also starting today with uestudio (it looks great), I have a question: How to integrate a lib file to a project? Best regards. Manuel Mercado
Compile Questions.
Dear Manuel, You have to modify: c:\Program Files\IDM Computer Solutions\UEStudio '06\configs\Harbour\Application and add the library name inside it. You can do it this way (using FWH provided UEStudio config Application file): ... LIBS4 = MyLib1.lib MyLib2.lib etc... LIBS = $(LIBS1) $(LIBS2) $(LIBS3) $(LIBS4) ...
Compile TGraph 2.0 with FWH
Hello! I use TGraph 2.0 with FW/Clipper and now I try compile it to use with (free and comercial) xHarbour/FWH and I coundn´t compile the .c file that come with source. Does anybody have a link script or .xbp file to compile it? Thanks a lot! Maurilio
Compile TGraph 2.0 with FWH
I use xmate with success
Compile error
Compiling the following sample [code=fw:3l01d6c2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:3l01d6c2] I get: [code=fw:3l01d6c2]<div class="fw" id="{CB}" style="font-family: monospace;">e:\vce\include\winnt.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2978</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2061: <span style="color: #000000;">syntax</span> error : <span style="color: #000000;">identifier</span> <span style="color: #ff0000;">'PCONTEXT'</span><br />e:\vce\include\winnt.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2979</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2059: <span style="color: #000000;">syntax</span> error : <span style="color: #ff0000;">'}'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">1416</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2061: <span style="color: #000000;">syntax</span> error : <span style="color: #000000;">identifier</span> <span style="color: #ff0000;">'LPCONTEXT'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">1416</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2059: <span style="color: #000000;">syntax</span> error : <span style="color: #ff0000;">';'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2119</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2146: <span style="color: #000000;">syntax</span> error : <span style="color: #000000;">missing</span> <span style="color: #ff0000;">')'</span> before identifier <span style="color: #ff0000;">'lpContext'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2119</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2081: <span style="color: #ff0000;">'LPCONTEXT'</span> : <span style="color: #0000ff;">name</span> in formal parameter list illegal<br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2119</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2061: <span style="color: #000000;">syntax</span> error : <span style="color: #000000;">identifier</span> <span style="color: #ff0000;">'lpContext'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2119</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2059: <span style="color: #000000;">syntax</span> error : <span style="color: #ff0000;">';'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2120</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2059: <span style="color: #000000;">syntax</span> error : <span style="color: #ff0000;">')'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2127</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2143: <span style="color: #000000;">syntax</span> error : <span style="color: #000000;">missing</span> <span style="color: #ff0000;">')'</span> before <span style="color: #ff0000;">'*'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2127</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2143: <span style="color: #000000;">syntax</span> error : <span style="color: #000000;">missing</span> <span style="color: #ff0000;">'{'</span> before <span style="color: #ff0000;">'*'</span><br />e:\vce\include\winbase.h<span style="color: #000000;">&#40;</span><span style="color: #000000;">2128</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2059: <span style="color: #000000;">syntax</span> error : <span style="color: #ff0000;">')'</span></div>[/code:3l01d6c2] What am I missing? EMG
Compile error
Enrico, Are you using the most recent FWPPC ? whatsnew.txt [quote:2gy0demh]March 2015 ========== * New: We are using most recent Harbour 3.4 from Vikthor. * New: FWPPC is using Visual Studio 2013.[/quote:2gy0demh]
Compile error
Antonio, I downloaded it from your website but whatsnew reports: February 2010 EMG
Compile error
Enrico, > Compiling the following sample How are you compiling it ?
Compile error
Antonio, with the provided buildce.bat. EMG
Compile error
Enrico, Please try it this way: [code=fw:9x0viv2x]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#define</span> _ARM_<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:9x0viv2x]
Compile error
Antonio, now I get: [code=fw:2ltebrb0]<div class="fw" id="{CB}" style="font-family: monospace;">fivecec.lib<span style="color: #000000;">&#40;</span>fwce.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2005: __security_cookie already defined in corelibc.lib<span style="color: #000000;">&#40;</span>seccook.obj<span style="color: #000000;">&#41;</span><br />fivecec.lib<span style="color: #000000;">&#40;</span>fwce.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2005: __security_check_cookie already defined in corelibc.lib<span style="color: #000000;">&#40;</span>armsecgs.obj<span style="color: #000000;">&#41;</span><br />fivecec.lib<span style="color: #000000;">&#40;</span>fwce.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2005: <span style="color: #000000;">InvertRect</span> already defined in coredll.lib<span style="color: #000000;">&#40;</span>COREDLL.dll<span style="color: #000000;">&#41;</span></div>[/code:2ltebrb0] EMG
Compile error
But compiling this: [code=fw:1sntry0j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fwce.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oWnd<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Riproduci"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">30</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> SNDPLAYSOUND<span style="color: #000000;">&#40;</span> CURDIR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\C</span>ONFERMA.WAV"</span> <span style="color: #000000;">&#41;</span>, SNDPLAYSOUND<span style="color: #000000;">&#40;</span> CURDIR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\C</span>ONFERMA.WAV"</span> <span style="color: #000000;">&#41;</span>, SNDPLAYSOUND<span style="color: #000000;">&#40;</span> CURDIR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\C</span>ONFERMA.WAV"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#define</span> _ARM_<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"mmsystem.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br /><br />LPWSTR AnsiToWide<span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span>;<br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SNDPLAYSOUND <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; LPWSTR pW = AnsiToWide<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_retnl<span style="color: #000000;">&#40;</span> sndPlaySound<span style="color: #000000;">&#40;</span> pW, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_xfree<span style="color: #000000;">&#40;</span> pW <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1sntry0j] I get: [code=fw:1sntry0j]<div class="fw" id="{CB}" style="font-family: monospace;">test.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">33</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4090: <span style="color: #ff0000;">'function'</span> : <span style="color: #000000;">different</span> <span style="color: #ff0000;">'const'</span> qualifiers<br />gtwvt.lib<span style="color: #000000;">&#40;</span>gtwvt.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> LNK1166: <span style="color: #000000;">cannot</span> <span style="color: #0000ff;">adjust</span> code <span style="color: #00C800;">at</span> offset=0x00001000, rva=0x000F9108</div>[/code:1sntry0j] EMG
Compile error
And the EXE has been produced. I can't test it, sorry. I'm not using FWPCC anymore. EMG
Compile error
Enrico, > test.prg(33) : warning C4090: 'function' : different 'const' qualifiers > gtwvt.lib(gtwvt.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000F9108 This is fine. The app should work ok. > And the EXE has been produced. I can't test it, sorry. I'm not using FWPCC anymore Then why are you doing these tests ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compile error
I updated FWPPC and found that problem. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Compile error
I get the following unresolved external that I didn't get with the previous FWPCC version: [code=fw:egfqwb5x]<div class="fw" id="{CB}" style="font-family: monospace;">error LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_GETLASTERROR</div>[/code:egfqwb5x] EMG
Compile error
Enrico, What example are you building ?
Compile error
Antonio, one of my old applications that use GetLastError(). It seems that it was defined in the previous FWPPC version. Now it's not anymore. EMG
Compile error
Enrico, Here you have it: [code=fw:1itxwlwt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETLASTERROR <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// () --> nError</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> GetLastError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:1itxwlwt]
Compile error
Antonio, yes, I already put that in my code. But my point is to report you that this function is not defined anymore. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Compile error
Enrico, I will include it, thank you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compile error = Unresolved external '_hb_storvds' ?
Dear All, I've got error while compile with new 9.08. Error: Unresolved external '_hb_storvds' referenced from D:\FWH\LIB\FIVEHC.LIB|FILES Regards, Dutch
Compile error = Unresolved external '_hb_storvds' ?
Dutch, Please add this code to your main PRG: [code=fw:2hz7bmpg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br />void &nbsp; hb_stords<span style="color: #000000;">&#40;</span> const char * szDate, int iParam, ... <span style="color: #000000;">&#41;</span>;<br /><br />void hb_storvds<span style="color: #000000;">&#40;</span> char * szDate, int iParam, int iIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_stords<span style="color: #000000;">&#40;</span> szDate, iParam, iIndex <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> &nbsp; &nbsp; <br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:2hz7bmpg] It will be added to next FWH 9.09 build <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compile error = Unresolved external '_hb_storvds' ?
Thanks, it works. Dutch
Compile tbfuncs.c
How can I compile (Peles c, Bcc, ?) tbfuncs.c to be used with xharbour ? Cheers, Antonio Ferreira
Compile tbfuncs.c
I forgot the include clauses. I got now these errors C:\fw21\WINH32\WINH32 xbset08>c:\fw21\borland\bcc55\bin\bcc32 -c -Ic:\fw21\xharb ourinc\xhbset08\xhb\c_include\win -Ic:\fw21\fwh_8\include -Ic:\fw21\xharbourinc\ xhbset08\xhb\c_include tcbfuncs.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland tcbfuncs.c: Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 49: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 50: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 51: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 52: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 53: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 54: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 55: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 56: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 64: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 66: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 75: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 76: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 77: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 78: Multiple decl aration for 'restrict' Error E2176 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 79: Too many type s in declaration Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 79: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 80: Multiple decl aration for 'restrict' Error E2176 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 81: Too many type s in declaration Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 81: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 82: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 83: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 84: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 85: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 89: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 97: Multiple decl aration for 'restrict' Error E2228 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 97: Too many erro r or warning messages *** 26 errors in Compile ***
Compile tbfuncs.c
If I try in Pelles C for windows I get: Building tcbfuncs.obj. C:\fw21\FWH_8\include\ClipApi.h(60): error #2121: Redeclaration of 'WORD'. C:\fw21\FWH_8\include\ClipApi.h(65): error #2121: Redeclaration of 'PWORD'. C:\fw21\FWH_8\include\ClipApi.h(66): error #2121: Redeclaration of 'LPWORD'. C:\fw21\FWH_8\include\ClipApi.h(71): error #2025: Expected an enumerator identifier. C:\fw21\FWH_8\include\ClipApi.h(71): error #2001: Syntax error: expected '}' but found 'integer constant'. C:\fw21\FWH_8\include\ClipApi.h(71): error #2121: Redeclaration of 'BOOL'. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(127): warning #1063: Single-line comment contains escaped new-line. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(130): warning #1063: Single-line comment contains escaped new-line. C:\fw21\FWH_8\include\ClipApi.h(463): error #2120: Redeclaration of 'strlen', previously declared at C:\fw21\xHarbourinc\XHB Set 08\xHB\c_include\string.h(30); expected 'unsigned int __cdecl function(const char *)' but found 'unsigned int __cdecl function(char *)'. C:\fw21\FWH_8\include\ClipApi.h(464): error #2120: Redeclaration of 'strcpy', previously declared at C:\fw21\xHarbourinc\XHB Set 08\xHB\c_include\string.h(27); expected 'char * __cdecl function(char *, const char *)' but found 'void __cdecl function(unsigned char *, unsigned char *)'. C:\fw21\FWH_8\include\ClipApi.h(465): error #2120: Redeclaration of 'strcmp', previously declared at C:\fw21\xHarbourinc\XHB Set 08\xHB\c_include\string.h(25); expected 'int __cdecl function(const char *, const char *)' but found 'BOOL __cdecl function(char *, char *)'. C:\fw21\FWH_8\include\ClipApi.h(466): error #2120: Redeclaration of 'strcat', previously declared at C:\fw21\xHarbourinc\XHB Set 08\xHB\c_include\string.h(23); expected 'char * __cdecl function(char *, const char *)' but found 'unsigned char * __cdecl function(unsigned char *, unsigned char *)'. C:\fw21\FWH_8\include\ClipApi.h(511): warning #2099: Missing type specifier; assuming 'int'. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(182): warning #2027: Missing prototype for 'MoveTo'. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(41): warning #2114: Local 'HeaderHeight' is not referenced. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(261): warning #2114: Local 'HeaderHeight' is not referenced. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(323): warning #2114: Local 'HeaderHeight' is not referenced. *** Error code: 1 *** Done.
Compile tbfuncs.c
I've managed to compile it with Pelles C with following messages: C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(127): warning #1063: Single-line comment contains escaped new-line. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(130): warning #1063: Single-line comment contains escaped new-line. C:\fw21\FWH_8\include\ClipApi.h(511): warning #2099: Missing type specifier; assuming 'int'. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(41): warning #2114: Local 'HeaderHeight' is not referenced. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(261): warning #2114: Local 'HeaderHeight' is not referenced. C:\fw21\WINH32\WINH32 xbset08\tcbfuncs.c(323): warning #2114: Local 'HeaderHeight' is not referenced. Building it with xharbour builder I got: xLINK: error: Unresolved external symbol '__parnl'. xLINK: error: Unresolved external symbol '__parni'. xLINK: error: Unresolved external symbol '__parc'. xLINK: error: Unresolved external symbol '__parclen'. xLINK: error: Unresolved external symbol '__parinfo'. xLINK: error: Unresolved external symbol '__retni'. xLINK: error: Unresolved external symbol '__reta'. xLINK: error: Unresolved external symbol '__storni'. xLINK: fatal error: 8 unresolved external(s).
Compile tbfuncs.c
If you use Borland, then do: bcc32.exe -c -ic:\xharbour\include tbfuncs.c If you get errors, please post here the source code for tbfuncs.c and we will help you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compile tbfuncs.c
Antonio, I need Obj to use with xarbour builder. Is the Bcc obj compatible with it? Should I use Pelles instead ? With bcc32 i get this: C:\fw21\WINH32\WINH32 xbset08>c:\fw21\borland\bcc55\bin\bcc32 -c -Ic;\fw21\fwh_8 \include tcbfuncs.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland tcbfuncs.c: Error E2209 tcbfuncs.c 2: Unable to open include file 'Windows.h' Error E2139 \fw21\fwh_8\include\ClipApi.h 77: Declaration missing ; Error E2238 \fw21\fwh_8\include\ClipApi.h 78: Multiple declaration for 'WORD' Error E2344 \fw21\fwh_8\include\ClipApi.h 77: Earlier declaration of 'WORD' Error E2139 \fw21\fwh_8\include\ClipApi.h 78: Declaration missing ; Error E2238 \fw21\fwh_8\include\ClipApi.h 79: Multiple declaration for 'WORD' Error E2344 \fw21\fwh_8\include\ClipApi.h 77: Earlier declaration of 'WORD' Error E2139 \fw21\fwh_8\include\ClipApi.h 79: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 80: Declaration missing ; Error E2238 \fw21\fwh_8\include\ClipApi.h 81: Multiple declaration for 'LPBYTE' Error E2344 \fw21\fwh_8\include\ClipApi.h 80: Earlier declaration of 'LPBYTE' Error E2139 \fw21\fwh_8\include\ClipApi.h 81: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 87: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 88: Declaration missing ; Error E2238 \fw21\fwh_8\include\ClipApi.h 89: Multiple declaration for 'LONG' Error E2344 \fw21\fwh_8\include\ClipApi.h 88: Earlier declaration of 'LONG' Error E2139 \fw21\fwh_8\include\ClipApi.h 89: Declaration missing ; Error E2238 \fw21\fwh_8\include\ClipApi.h 90: Multiple declaration for 'LONG' Error E2344 \fw21\fwh_8\include\ClipApi.h 88: Earlier declaration of 'LONG' Error E2139 \fw21\fwh_8\include\ClipApi.h 90: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 95: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 103: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 104: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 112: Declaration missing ; Error E2139 \fw21\fwh_8\include\ClipApi.h 113: Declaration missing ; Error E2228 \fw21\fwh_8\include\ClipApi.h 113: Too many error or warning message s *** 26 errors in Compile *** Antonio
Compile tbfuncs.c
Antonio, Sorry I miss it. This is the correct output C:\fw21\WINH32\WINH32 xbset08>c:\fw21\borland\bcc55\bin\bcc32 -c -Ic:\fw21\xharb ourinc\xhbset08\xhb\c_include\win tcbfuncs.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland tcbfuncs.c: Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\Windows.h 66: Unable to open include file 'excpt.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\Windows.h 67: Unable to open include file 'stdarg.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 10: Unable to open include file 'wchar.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 11: Unable to open include file 'ctype.h' Error E2257 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 100: , expect ed Error E2257 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 101: , expect ed Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\guiddef.h 105: Unable to open include file 'string.h' Error E2211 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 1767: Inline assembly not allowed in inline and template functions Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2038: Unable to open include file 'pshpack4.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2045: Unable to open include file 'poppack.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2464: Unable to open include file 'pshpack4.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2466: Unable to open include file 'pshpack2.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2577: Unable to open include file 'poppack.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2722: Unable to open include file 'pshpack2.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2795: Unable to open include file 'poppack.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2834: Unable to open include file 'pshpack8.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 2846: Unable to open include file 'poppack.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 3095: Unable to open include file 'poppack.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\winnt.h 3126: Unable to open include file 'string.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\wingdi.h 1642: Unable to open include file 'pshpack1.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\wingdi.h 1648: Unable to open include file 'poppack.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\wingdi.h 1783: Unable to open include file 'pshpack2.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\wingdi.h 1791: Unable to open include file 'poppack.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\wingdi.h 1829: Unable to open include file 'pshpack2.h' Error E2209 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\wingdi.h 1841: Unable to open include file 'poppack.h' Error E2228 c:\fw21\xharbourinc\xhbset08\xhb\c_include\win\wingdi.h 1841: Too ma ny error or warning messages *** 26 errors in Compile ***
Compile tbfuncs.c
Antonio, Borland is not compatible with xHB.com so as you have discovered yourself, you have to use PellesC or MS Visual C. Change the header files in the C file this way: #include <windows.h> #include <hbapi.h> before all _par... and _ret... functions place hb: hb_par... hb_ret...
Compile tbfuncs.c
what version of tsbrowse using you this is my xmate project for compile tsbrowse library this zip contains th xhb.com and xharbour.org lib the harbour version is not compiling <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> <!-- w --><a class="postlink" href="http://www.donboscocorp.com/carlos/libsbrowse.zip">www.donboscocorp.com/carlos/libsbrowse.zip</a><!-- w --> salu2
Compile tbfuncs.c
Thanks Antonio I've discovered that. Its an old project with our own class inerith from Tcbrowse. The probelm is that the client wants a bigger space beteewn each row on the browse thus I decided to alter tbfuncs.c in order to do that. At the present I only have a problem to control the highlite not to go behind the bottom of the browse. I thing the problem is within GetWindowRow
Compile the prg
Antonio, thanks for FiveTouch, it has big possibilities . I would like to know how compile the prg. Thanks Maurizio <!-- m --><a class="postlink" href="http://www.nipeservice.com">http://www.nipeservice.com</a><!-- m -->
Compile the prg
Maurizio, When you click on "run" the PRG gets compiled and executed Do you mean how to create your own APKs ? If so, then you need the FiveTouch Developers Edition, so you can build your own APKs.
Compile tutor04 error hb_fun_setsize()
Compiling tutor04.prg this error occurs: [code=fw:1rcb1pp5]<div class="fw" id="{CB}" style="font-family: monospace;">compiling...<br />Harbour <span style="color: #000000;">3.0</span><span style="color: #000000;">.0</span> <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">16951</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2011</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'tutor04.prg'</span>...<br />Lines <span style="color: #000000;">1227</span>, Functions/Procedures <span style="color: #000000;">2</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor04.c'</span>... Done.<br />compiling C module...<br />linking...<br />./../lib/libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">checkbox</span>.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #00C800;">data</span>+0x1e8<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_SETSIZE<span style="color: #ff0000;">'<br />./../lib/libfive.a(image.o):(.data+0x1a8): undefined reference to `HB_FUN_SETSIZE'</span><br />./../lib/libfive.a<span style="color: #000000;">&#40;</span>progres.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #00C800;">data</span>+0x1e8<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_SETSIZE<span style="color: #ff0000;">'<br />collect2: ld returned 1 exit status<br />done!<br />build.sh: linha 23: ./tutor04: Arquivo ou diretório não encontrado<br /></span></div>[/code:1rcb1pp5] how to proceed? <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Compile tutor04 error hb_fun_setsize()
Please use the most recent repository source code: svn checkout <!-- m --><a class="postlink" href="https://fivelinux.googlecode.com/svn/trunk/">https://fivelinux.googlecode.com/svn/trunk/</a><!-- m --> fivelinux cd fivelinux make
Compile warming
--------------------Configuration: Ontop-Pocket - Release-------------------- Harbour 2.0.0 (Rev. 13372) Copyright (c) 1999-2010, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM Copyright (C) Microsoft Corp 1984-2002. All rights reserved. WCliente.c hbvm.lib(hvmall.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x0003A4E0 Ontop-Pocket.EXE - 0 error(s), 1 warning(s) It;s normal ? How solve this warning ? thanks
Compile warming
Daniel help solve, Here solucion Change script UEs line Cmd0 To: Cmd0 = LINK $(LOPT) /ARMPADCODE:NO $FGO $(LIBS) $FGR =]
Compile-error sample SCRIPT.prg ( from Memo ) ?
Hello, I need a solution, to run small functions, defined inside a Memo-field. I wanted to test SCRIPT.prg from sample-folder, but there are errors. [img:1dpld75r]http&#58;//www&#46;pflegeplus&#46;com/pictures/script&#46;jpg[/img:1dpld75r] Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Compile-error sample SCRIPT.prg ( from Memo ) ?
Ukoenig, [code=fw:308qkbrd]<div class="fw" id="{CB}" style="font-family: monospace;">* <span style="color: #00C800;">New</span>: <span style="color: #00C800;">function</span> Execute<span style="color: #000000;">&#40;</span> cCode, <span style="color: #000000;">&#91;</span> params, ... <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> --> uResult invokes the builted in <br />Harbour compiler so you can compile any external file or dinamically built code. Please<br />review FWH\samples\scripts.prg</div>[/code:308qkbrd] It's only for Harbour <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Compiler error
Guys: As per Antonio's instructions I put this code at the end of my main PRG but I'm getting a compiler error: [code=fw:2b67w8fz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETCONSOLEWINDOW <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   hb_retnll<span style="color: #000000;">&#40;</span> GetConsoleWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:2b67w8fz] [code=fw:2b67w8fz]<div class="fw" id="{CB}" style="font-family: monospace;">Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'obj<span style="color: #000000;">\T</span>EST.c'</span>... Done.<br />        c:\bcc582\bin\bcc32 -c -tWM -Ic:\Harbour320\include -oobj\TEST obj\TEST.c<br />Borland C++ <span style="color: #000000;">5.82</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2005</span> Borland<br />obj\TEST.c:<br /><span style="color: #000000;">Error</span> E2342 .\\TEST.PRG <span style="color: #000000;">2412</span>: <span style="color: #000000;">Type</span> mismatch in parameter <span style="color: #ff0000;">'lNumber'</span> <span style="color: #000000;">&#40;</span>wanted <span style="color: #ff0000;">'__int64'</span>, got <span style="color: #ff0000;">'HWND__ *'</span><span style="color: #000000;">&#41;</span> in <span style="color: #00C800;">function</span> HB_FUN_GETCONSOLEWINDOW<br />*** <span style="color: #000000;">1</span> errors in Compile ***<br /><br />** error <span style="color: #000000;">1</span> ** deleting .\obj\TEST.OBJ</div>[/code:2b67w8fz] Any ideas of what's wrong ?
Compiler error
Try this: [code=fw:264ire7b]<div class="fw" id="{CB}" style="font-family: monospace;">hb_retnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> __int64 <span style="color: #000000;">&#41;</span> GetConsoleWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;</div>[/code:264ire7b] EMG
Compiler error in FW 13.09 (solved)
Guys: The following code is flagged as a compiler error in FW 13.09 but compiles ok in FW 10.06: [code=fw:1h9v0dru]<div class="fw" id="{CB}" style="font-family: monospace;">   @ <span style="color: #000000;">130</span>,<span style="color: #000000;">055</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">185</span>,<span style="color: #000000;">120</span> LABEL <span style="color: #ff0000;">"My Text"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span></div>[/code:1h9v0dru] Any help would be greatly appreciated. Thank you.
Compiler error in FW 13.09 (solved)
[code=fw:ebgyrj4v]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">130</span>,<span style="color: #000000;">055</span> GROUP <span style="color: #0000ff;">TO</span> <span style="color: #000000;">185</span>,<span style="color: #000000;">120</span> LABEL <span style="color: #ff0000;">"My Text"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span></div>[/code:ebgyrj4v]
Compiler error in FW 13.09 (solved)
Rao: Thank you very much sir.
Compiler problem.
Guys: I'm getting the following error: [code=fw:1ucxrhf0]<div class="fw" id="{CB}" style="font-family: monospace;">.\test.PRG<span style="color: #000000;">&#40;</span><span style="color: #000000;">320</span><span style="color: #000000;">&#41;</span> Error E0030  Syntax error <span style="color: #ff0000;">"syntax error at 'áá'"</span><br /><br />** error <span style="color: #000000;">1</span> ** deleting .\obj\test.OBJ</div>[/code:1ucxrhf0] offending line: [code=fw:1ucxrhf0]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, IIF<span style="color: #000000;">&#40;</span> Es_status == <span style="color: #ff0000;">"P"</span>, CLR_HBLUE, CLR_HGREEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span></div>[/code:1ucxrhf0] Harbour 3.2.0 (r1601050904) FiveWin 16.06
Compiler problem.
Delete the entire line and write it yourself, do not copy and paste from another source
Compiler problem.
Perfect !!!! Thank you very much !!!
Compiler switches.
Guys: Under the old Clipper way I used to compile with the following switches: Clipper MyProg /m /n /w /es2 How can I reproduce the /w /es2 behavior under FiveWin / xHarbour ? What I need is that the compiler flags out any undeclared variable / function / procedure and stops before linking the OBJs. Thank you.
Compiler switches.
[x]Harbour is intended to be switch compatible with Clipper. EMG
Compiler warning in FWH9.8
Antonio, if i compile with parameter -gc3 (pure c-Output) i become the compiler warning for every function in the PRG: Warning W8065 .\MyPRG.hrb: Call to function "hb_xvmExitProc" with no prototype in function HB_FUN_Myfunction In earlier versons of FWH all is ok.
Compiler warning in FWH9.8
Günther, Thats a Harbour related issue. It is not related to FWH: hb_xvmExitProc is defined in c:\harbour\include\hbxvm.h as: extern HB_EXPORT void hb_xvmExitProc( void ); Please check that you are using the right hbxvm.h and that such file is included in the generated C file
Compiler warning in FWH9.8
Antonio, i use for years the compiler option -gc3! Everytime all was ok and the programs run up to 25% faster! In the last FWH versions (or (x)harbour) this error appears. But i will test to extra include this headerfile and send the result.
Compiler warning in FWH9.8
Günther, Here you can find the most recent Harbourm and xHarbour builds: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=2486&p=92385#p92385">viewtopic.php?f=16&t=2486&p=92385#p92385</a><!-- l -->
Compiler warning in FWH9.8
Günther, Please post here the resulting .C file that you get when you use the -gc3 switch, thanks Please use a small PRG example, so it is not too large.
Compiler warning in FWH9.8
The problem is only with xHarbour but not with Harbour. I modified buildx.bat 's harbour compilation like this. [code=fw:2izlorwe]<div class="fw" id="{CB}" style="font-family: monospace;">%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /gc3 /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log</div>[/code:2izlorwe] My prg code: [code=fw:2izlorwe]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'/gc3'</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:2izlorwe] This is the warning. [code=fw:2izlorwe]<div class="fw" id="{CB}" style="font-family: monospace;">Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'t.c'</span>...<br />Done.<br />Borland C++ <span style="color: #000000;">5.5</span><span style="color: #000000;">.1</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2000</span> Borland<br />t.c:<br /><span style="color: #000000;">Warning</span> W8065 t.c <span style="color: #000000;">67</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_xvmExitProc'</span> with no prototype in <span style="color: #00C800;">function</span> HB_FUN_MAIN<br />Turbo Incremental Link <span style="color: #000000;">5.00</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span>, <span style="color: #000000;">2000</span> Borland<br />* Application successfully built *<br />&nbsp;</div>[/code:2izlorwe] Here is the c code generated [code=fw:2izlorwe]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />&nbsp;* xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406)<br />&nbsp;* Generated C source code from <t.prg><br />&nbsp;* Command: t /n /i.\..\include;c:\xharbour\include /w /gc3 /p <br />&nbsp;* Created: 2010.01.03 07:10:21 (Borland C++ 5.5.1 (32 bit))<br />&nbsp;*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbvmpub.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbxvm.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapierr.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbinit.h"</span><br /><br /><span style="color: #00D7D7;">#define</span> __PRG_SOURCE__ <span style="color: #ff0000;">"t.prg"</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MAIN <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #B900B9;">/* Skipped DEFERRED call to: 'DIVERTCONSTRUCTORCALL' */</span><br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> GETPROCADD <span style="color: #000000;">&#41;</span>;<br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> TACTIVEX <span style="color: #000000;">&#41;</span>;<br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> ERRORSYS <span style="color: #000000;">&#41;</span>;<br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MSGINFO</span> <span style="color: #000000;">&#41;</span>;<br /><br />#undef HB_PRG_PCODE_VER<br /><span style="color: #00D7D7;">#define</span> HB_PRG_PCODE_VER <span style="color: #000000;">10</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br />HB_INIT_SYMBOLS_BEGIN<span style="color: #000000;">&#40;</span> hb_vm_SymbolInit_T <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DIVERTCONSTRUCTORCALL"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC | HB_FS_DEFERRED<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span><span style="color: #00C800;">NULL</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"GETPROCADD"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> GETPROCADD <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TACTIVEX"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> TACTIVEX <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ERRORSYS"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> ERRORSYS <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MAIN"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC | HB_FS_LOCAL | HB_FS_FIRST<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> MAIN <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, &ModuleFakeDyn <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MSGINFO"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MSGINFO</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span><br />HB_INIT_SYMBOLS_END<span style="color: #000000;">&#40;</span> hb_vm_SymbolInit_T <span style="color: #000000;">&#41;</span><br /><br />#if defined<span style="color: #000000;">&#40;</span>__ICL<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> warning<span style="color: #000000;">&#40;</span>disable:<span style="color: #000000;">177</span><span style="color: #000000;">&#41;</span><br />#endif<br /><br />#if defined<span style="color: #000000;">&#40;</span>HB_PRAGMA_STARTUP<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> startup hb_vm_SymbolInit_T<br />#elif defined<span style="color: #000000;">&#40;</span>HB_MSC_STARTUP<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#if defined<span style="color: #000000;">&#40;</span> HB_OS_WIN_64 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#pragma</span> section<span style="color: #000000;">&#40;</span> HB_MSC_START_SEGMENT, long, read <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> data_seg<span style="color: #000000;">&#40;</span> HB_MSC_START_SEGMENT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> HB_$INITSYM hb_vm_auto_SymbolInit_T = hb_vm_SymbolInit_T;<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> data_seg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MAIN <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; hb_xvmBaseLine<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_xvmPushSymbol<span style="color: #000000;">&#40;</span> symbols + <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_xvmPushNil<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_xvmPushStringConst<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"/gc3"</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_xvmDo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; hb_xvmLineOffset<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_xvmPushInteger<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_xvmRetValue<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #B900B9;">/* *** END PROC *** */</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_xvmExitProc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2izlorwe]
Compiler warning in FWH9.8
Antonio, I found that this error are shown only, if an own or modified class is to be compile and link!! In my programm i use a modified xbrowse-class but also other own classes produce this warning. But only with compiler switch -gc3!!!
Compiler warning in FWH9.8
Here is the c code generated without any /g[ ] switch. Generated with buildx.bat [code=fw:1761i4ot]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />&nbsp;* xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406)<br />&nbsp;* Generated C source code from <t.prg><br />&nbsp;* Command: t /n /i.\..\include;c:\xharbour\include /w /p <br />&nbsp;* Created: 2010.01.03 07:14:59 (Borland C++ 5.5.1 (32 bit))<br />&nbsp;*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbvmpub.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbpcode.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbinit.h"</span><br /><br /><span style="color: #00D7D7;">#define</span> __PRG_SOURCE__ <span style="color: #ff0000;">"t.prg"</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MAIN <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #B900B9;">/* Skipped DEFERRED call to: 'DIVERTCONSTRUCTORCALL' */</span><br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> GETPROCADD <span style="color: #000000;">&#41;</span>;<br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> TACTIVEX <span style="color: #000000;">&#41;</span>;<br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> ERRORSYS <span style="color: #000000;">&#41;</span>;<br />HB_FUNC_EXTERN<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MSGINFO</span> <span style="color: #000000;">&#41;</span>;<br /><br />#undef HB_PRG_PCODE_VER<br /><span style="color: #00D7D7;">#define</span> HB_PRG_PCODE_VER <span style="color: #000000;">10</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br />HB_INIT_SYMBOLS_BEGIN<span style="color: #000000;">&#40;</span> hb_vm_SymbolInit_T <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DIVERTCONSTRUCTORCALL"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC | HB_FS_DEFERRED<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span><span style="color: #00C800;">NULL</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"GETPROCADD"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> GETPROCADD <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TACTIVEX"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> TACTIVEX <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ERRORSYS"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> ERRORSYS <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MAIN"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC | HB_FS_LOCAL | HB_FS_FIRST<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> MAIN <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, &ModuleFakeDyn <span style="color: #000000;">&#125;</span>,<br /><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MSGINFO"</span>, <span style="color: #000000;">&#123;</span>HB_FS_PUBLIC<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>HB_FUNCNAME<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MSGINFO</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#125;</span><br />HB_INIT_SYMBOLS_END<span style="color: #000000;">&#40;</span> hb_vm_SymbolInit_T <span style="color: #000000;">&#41;</span><br /><br />#if defined<span style="color: #000000;">&#40;</span>__ICL<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> warning<span style="color: #000000;">&#40;</span>disable:<span style="color: #000000;">177</span><span style="color: #000000;">&#41;</span><br />#endif<br /><br />#if defined<span style="color: #000000;">&#40;</span>HB_PRAGMA_STARTUP<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> startup hb_vm_SymbolInit_T<br />#elif defined<span style="color: #000000;">&#40;</span>HB_MSC_STARTUP<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#if defined<span style="color: #000000;">&#40;</span> HB_OS_WIN_64 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#pragma</span> section<span style="color: #000000;">&#40;</span> HB_MSC_START_SEGMENT, long, read <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> data_seg<span style="color: #000000;">&#40;</span> HB_MSC_START_SEGMENT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> HB_$INITSYM hb_vm_auto_SymbolInit_T = hb_vm_SymbolInit_T;<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> data_seg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MAIN <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> const BYTE pcode<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> =<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><span style="color: #B900B9;">/* 00000 */</span> HB_P_BASELINE, <span style="color: #000000;">18</span>, <span style="color: #000000;">0</span>,&nbsp; &nbsp;<span style="color: #B900B9;">/* 18 */</span><br />&nbsp; &nbsp; HB_P_PUSHSYMNEAR, <span style="color: #000000;">5</span>,&nbsp; &nbsp; <span style="color: #B900B9;">/* MSGINFO */</span><br />&nbsp; &nbsp; HB_P_PUSHNIL,<br />&nbsp; &nbsp; HB_P_PUSHSTRSHORT, <span style="color: #000000;">5</span>,&nbsp; &nbsp;<span style="color: #B900B9;">/* 5 */</span><br />&nbsp; &nbsp; <span style="color: #ff0000;">'/'</span>, <span style="color: #ff0000;">'g'</span>, <span style="color: #ff0000;">'c'</span>, <span style="color: #ff0000;">'3'</span>, <span style="color: #000000;">0</span>, <br />&nbsp; &nbsp; HB_P_DOSHORT, <span style="color: #000000;">1</span>,<br /><span style="color: #B900B9;">/* 00015 */</span> HB_P_LINEOFFSET, <span style="color: #000000;">2</span>,&nbsp;<span style="color: #B900B9;">/* 20 */</span><br />&nbsp; &nbsp; HB_P_ZERO,<br />&nbsp; &nbsp; HB_P_RETVALUE,<br />&nbsp; &nbsp; HB_P_ENDPROC<br /><span style="color: #B900B9;">/* 00020 */</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span>;<br /><br />&nbsp; &nbsp;hb_vmExecute<span style="color: #000000;">&#40;</span> pcode, symbols <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:1761i4ot]
Compiler warning in FWH9.8
Rao, Thanks for the example <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> There is a little error in xharbour\include\hbxvm.h. Just modify this line: extern HB_EXPORT void hb_xvmExitProc(); this way: extern HB_EXPORT void hb_xvmExitProc( void ); and the warning is solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compiler warning in FWH9.8
Thanks Problem solved