topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
BuildCommDCB: flow control strings
|
Davide,
This may help:
[url:12ntdaqd]http://support.microsoft.com/kb/73234/en-us/[/url:12ntdaqd]
|
Building APK suggestion
|
If you are building and testing FiveTouch apk this might save a couple of steps.
Previous steps to get updated apk on phone.
[list:3sunprfw]Build apk with qtcreator
locate and copy apk to new location and name.
create email and attach apk.
then wait for phone to read email and install app.
[/list:u:3sunprfw]
New steps
[list:3sunprfw]Build apk with qtcreator
click link on phone
download and install new version[/list:u:3sunprfw]
I added a custom make process to copy apk to new location with new name.
The new location is actually a virtual directory on web server.
So after the build I just have to click link on phone and it downloads new apk.
Here is the custom make process.
[img:3sunprfw]http://www.wwrowland.com/private/it/FiveTouchCopyCustomProcess.png[/img:3sunprfw]
This is the copyapk.bat in c:\fivetouch
[img:3sunprfw]http://www.wwrowland.com/private/it/CopyApkBat.png[/img:3sunprfw]
In order to download apk from web site you may need to add mime type for .apk
Here is the mime type info.
Extension: .apk
MIME type: application/vnd.android.package-archive
Now i can just build, click on link to download, and install new version.
|
Building APK suggestion
|
Gale,
Simple and great!
Thanks for sharing it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Android apps from Visual Studio Community
|
First tests, and first difficulties <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:paga6at0]http://forums.xamarin.com/discussion/28832/what-files-to-copy-to-the-device-in-order-to-run-an-app#latest[/url:paga6at0]
[url:paga6at0]http://forums.xamarin.com/categories/android[/url:paga6at0]
|
Building Android apps from Visual Studio Community
|
[i:3ukqn84i]I am using Visual Studio Community, built an android app and generated the debug version (can't build the release version, always fails, don't know why). Once it is created I have these files:
App1.App1.apk App1.App1-Signed.apk App1.dll App1.dll.mdb App1.pdb
How can I copy those files to an Android phone to test it ? thanks
[/i:3ukqn84i]
Antonio Como yo veo, tienes dos instaladores que son los que terminan en APK
uno normal y otro firmado.
Para instalarlos yo utilizo el ADB de android
[code=fw:3ukqn84i]<div class="fw" id="{CB}" style="font-family: monospace;"><br />adb install App1.App1.apk<br /> </div>[/code:3ukqn84i]
El ADB es parte del sdk de android
|
Building Android apps from Visual Studio Community
|
hack: Antonio, otra forma es: mándatelos por correo electronico y al descargarse se instalan solos. Si ya sé que hay que buscar otra forma... pero al principio conviene ir avanzando <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
|
Building Dll using xMate
|
Hi,
Does somebody know as building a dll of resources using xMate ?
Theconfig file in *.mak file is
[code:202hn7wz]makepath[.dll]=".\dll"
makepath[.res]=".\res"
.rc.dll:
bcc32 -c -o.\dll\screen32.obj .\dll\screen32.hc
brc32 -r $<
ilink32 /Tpd c0d32.obj .\dll\screen32.obj, .\dll\$*.dll,,cw32.lib import32.lib,, .\dll\$*.res
.rc.res:
brc32 -r $< [/code:202hn7wz]
Thanks.
|
Building FWH
|
I would like to be able build fivewin locally using harbour 3.2. I happen to be using MSVC at the moment, but I use BCC and mingw as well. I keep running into the following problem:
Compiling 'classes\dbm.prg'...
classes\dbm.prg(38) Error E0030 Syntax error "syntax error at 'ODICT'"
classes\dbm.prg(51) Error E0030 Syntax error "syntax error at 'AFIELDS'"
2 errors
No code generated.
The error each time is for a line as follows:
BYNAME oDict
I see that this is defined in:
#include "Objects.ch"
Which is included in FiveWin.ch, but I can't clear the error even if I explicitly add Objects.ch to dbm.prg. Please note that dbm.prg is just the first prg I get to with this error, there are quite a few others with the same issue.
I've run out of things to look for and haven't figured this one out. Any insight into what is going on here would be most appreciated.
Best regards,
Robb
|
Building FWH
|
Robb,
Thats an old FW 16 bits file that should not be there, we are sorry.
We are going to delete it right now, thanks
|
Building FWH
|
The same applies for dbms.prg
|
Building FWH
|
I've now renamed both of those files in my local copy.
Next error:
Compiling 'classes\ddeserv.prg'...
classes\ddeserv.prg(11) Error F0029 Can't open #include file 'DdeFV.ch'
I don't see that .ch file anywhere. I've worked around it temporarily by commenting out the include line in ddeserv.prg. I assume this is just a missing file in the 13.06 distribution, but that is just a guess.
Next error:
Compiling 'classes\dialog.prg'...
classes\dialog.prg(521) Error E0030 Syntax error "syntax error at 'STATIC'"
classes\dialog.prg(524) Error E0030 Syntax error "syntax error at 'STATIC'"
classes\dialog.prg(526) Error E0030 Syntax error "syntax error at 'STATIC'"
3 errors
These are due to the following declarations. As it is a syntax error I'm assuming it is another improperly referenced .ch file. But, as I am compiling this with msvc, I am not sure there isn't still going to be an issue even if the syntax error is corrected.
//----------------------------------------------------------------------------//
// Conection with Borland's VBX DLL - at run-time !!!
DLL STATIC FUNCTION VbxInitDialog( hWnd AS WORD, hInstance AS WORD,;
cResName AS STRING ) AS BOOL PASCAL LIB "BIVBX10.DLL"
DLL STATIC FUNCTION VbxInit( hInstance AS WORD, cPrefix AS STRING ) ;
AS BOOL PASCAL LIB "BIVBX10.DLL"
DLL STATIC FUNCTION VbxTerm() AS VOID PASCAL LIB "BIVBX10.DLL"
|
Building FWH
|
Robb,
Please check that you are using the right DLL.ch
Dialog.prg should compile fine with no errors at all.
Best regards
Antonio
|
Building FWH
|
Robb
Vbx is for 16 bits only, it will not run on 32 bits
Hth
Richard
|
Building FWH
|
Richard,
I understand and agree.
Since that last email I have commented out a number files and renamed them .orignal, starting with dbm.prg and dbms.prg as Antonio suggested was proper. I still have to review the complete list of those validate myself, but I think I don't use them, at least not directly. Internally by FW, I have no idea yet. I commented out anything with odbc in its name, as well as anything with sql in its name. I do use some of these features, but I get get much of this from harbour itself. I can provide that list.
I have quite a number of edits of files where structures are used, here just adding "CStruct.ch" to compliment the already present "Struct.ch" fixes most issues. There is still a problem with member strings, this coded uses syntax MEMBER variable AS STRING LEN nn, but LEN nn throws and error under harbour. I use structures in another program and I don't recall this being an issue there so I'll be looking for a configuration issue on my end. For now I've just commented out // LEN
I simply commented out all calls to DLL or DLL32. I'm sure I've disabled a great number of things doing so, but as pointed out, it may not be relevant if they are 16 bit extensions. I'm sure the syntax error is an easy fix, but its the figuring out if they are relevant part that matters. I'm guessing DLL files aren't files I use anyway, but possibly all DLL32 could be used.
I can't that I've tested the outcome, but I at least got it to compile, or I got all the .prg code to compile. I have a number of .c files that won't compile, but appear to be critical, at least by name. This group of errors may be c compiler switch related, so I need to review any errors there.
I am currently trying to build use my .prg lib with the FWH provided FiveHC.lib to do some testing that way.
Antonio, if any of this is helpful outside my personal interest I'll continue to share what I find on this thread. If not of general interest I'll get on with my testing and open discrete problems. If this is helpful for improving things overall, I'm more than happy to share, and learn.
Robb
|
Building FWH
|
Robb,
You don't need to modify the FWH sources to compile. If they are not compiling fine is because you are not providing the right path to the header files to use, or a wrong Harbour version, etc.
No need at all to use "CStruct.ch". Please let us know what errors you get when compiling and we will try to find what is going on on your side, thanks
|
Building FWH
|
I don't want to edit any FWH files, or any harbour files either for that matter. I'm just trying to get a valid build and there are some things in the way.
All the headers in question have appropriate paths to them. I can compile anything and everything I wrote, it is only a few files in fwh causing me issues.
Without #include "CStruct.ch"
Compiling 'classes\twebcam.prg'...
classes\twebcam.prg(200) Warning W0001 Ambiguous reference 'DWORD'
classes\twebcam.prg(201) Warning W0001 Ambiguous reference 'BOOL'
classes\twebcam.prg(202) Warning W0001 Ambiguous reference '_INT'
classes\twebcam.prg(203) Warning W0001 Ambiguous reference 'BOOL'
classes\twebcam.prg(204) Warning W0001 Ambiguous reference 'DWORD'
...
With #include "CStruct.ch" i get an ambiguous references, as folllows for example:
Compiling 'classes\reg32.prg'...
classes\reg32.prg(129) Warning W0001 Ambiguous reference 'DWORD'
classes\reg32.prg(201) Warning W0001 Ambiguous reference 'DWORD'
or
Compiling 'classes\twebcam.prg'...
classes\twebcam.prg(267) Warning W0001 Ambiguous reference 'STRING'
Where that latter line errors occur on lines as follows:
MEMBER oXYScroll AS STRING LEN 8
I looked for where DWORD is defined and found it in wintypes.ch, but then found that wintypes.ch itself includes cstruct.ch, so I removed the reference to cstruct.ch and added wintypes.ch and cleared all errors in this regard, with the exception of one type,
Compiling 'classes\twebcam.prg'...
classes\twebcam.prg(267) Warning W0001 Ambiguous reference 'STRING'
This one appears to me to be a conflict between FWH and harbour.
Fivewin includes this in struct.ch as follows:
#xcommand MEMBER <cName> AS <type> ;
[ LEN <nLen> ] ;
[ INIT <uValue> ] ;
=> ;
ThisStruct():AddMember( <(cName)>, <type>, <nLen> ) ;
[ ; ThisStruct():SetMember( Len( ThisStruct():aMembers ), <uValue> ) ]
harbour defines it in cstruct.ch as:
#xcommand MEMBER <!elem!> AS <!stru!> => ;
hb_Member( #<elem>, hb_CStructureId( #<stru>, .F. ) )
I don't see this as a problem problem in my code when I use the prebuilt fwh libraries you provide, but I don't use anything that uses this member syntax. It seems to me that including "wintypes.ch" is the correct way to resolve the ambiguous references, but that introduces CStruct.ch which in turn seems to bring in the conflict noted above. If there is another more proper header to use for building fwh I'll be happy to switch to that.
I also note that FWH itself redefines DWORD a itself, not sure the ramifications of that, if any.
---------- DLL.CH
#define DWORD 12
|
Building FWH
|
Robb,
DWORD, BOOL, _INT, etc. are defined inside FWH include/dll.ch
It seems to me as you are using a wrong dll.ch. This used to happen with xbase++ users as xbase++ provides a DLL.ch, different from FWH one, and xbase++ may have changed your paths.
TWebcam.prg compiles here fine with no warnings at all. Please check for that wrong dll.ch and set your paths accordingly, thanks
|
Building FWH
|
Also, those names make no conflict with C compilers same names, as FWH names are used from PRG level only, not from C.
We should use FW_DWORD, FW_BOOL, etc. so this way we avoid any possible conflict, but we can not avoid the use of a wrong CH file. Maybe we could do:
#include "dll.ch"
#ifndef DWORD
#error You are using a wrong DLL.CH
#endif
Not sure how to issue an error from the Harbour preprocessor. Going to search for it...
|
Building FWH
|
Yes, that way:
#error whatever...
|
Building FiveLinux applications from ""gedit""
|
In gedit, go to "Edit", "Preferences". Then select "plugins" and check
"External tools".
Then go to "Tools", "External tools..." and add a new tool:
name it: "FiveLinux"
description: "FiveLinux"
shortcut key: (press) F5
Command(s):
#!/bin/sh
name=$GEDIT_CURRENT_DOCUMENT_NAME;
file=${name%.*};
./build.sh $file;
input: current document
output: display in bottom pane
That's all <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building FiveLinux applications from ""gedit""
|
[url=http://imageshack.us:vxbdb4hu][img:vxbdb4hu]http://img464.imageshack.us/img464/6408/screenshot1iu8.png[/img:vxbdb4hu][/url:vxbdb4hu]
|
Building FiveMac apps from HBIDE !!!
|
There is a HBIDE bug to be fixed on OSX, but besides that, we can already build FiveMac apps from HBIDE !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:3mwp5ut3]http://a.imageshack.us/img43/4604/picture2pz.png[/img:3mwp5ut3]
I used these settings for HBIDE (you can run it as a script or better do an auto load script in HBIDE):
settings.prg
[code=fw:3mwp5ut3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> main<span style="color: #000000;">(</span> oIde <span style="color: #000000;">)</span><br /><br /> hb_setEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PATH"</span>, hb_getEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PATH"</span> <span style="color: #000000;">)</span> +<br /><span style="color: #ff0000;">":/Users/anto/harbour/harbour/bin/darwin/gcc"</span> <span style="color: #000000;">)</span><br /><br /> hb_setEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"HB_COMPILER"</span>, <span style="color: #ff0000;">"gcc"</span> <span style="color: #000000;">)</span><br /> hb_setEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"HB_USER_PRGFLAGS"</span>, <span style="color: #ff0000;">"-i/Users/anto/fivemac/include"</span> <span style="color: #000000;">)</span><br /> hb_setEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"HB_USER_LDFLAGS"</span>, <span style="color: #ff0000;">"-L/Users/anto/fivemac/lib -framework Cocoa"</span> <span style="color: #000000;">)</span><br /> hb_setEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"HB_USER_LIBS"</span>, <span style="color: #ff0000;">"five.lib fivec.lib"</span> <span style="color: #000000;">)</span><br /> hb_setEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"HB_GUI"</span>, <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">)</span><br /><br /> MsgBox<span style="color: #000000;">(</span> <span style="color: #ff0000;">"FiveMac settings loaded"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3mwp5ut3]
|
Building FiveMac apps from HBIDE !!!
|
Viktor propossed a better settings:
[url:1jpja45k]http://groups.google.es/group/harbour-devel/browse_thread/thread/579a610cb92a0c93?hl=es#[/url:1jpja45k]
|
Building FiveMac apps from HBIDE !!!
|
[quote="Antonio Linares":brqplbeg]Viktor propossed a better settings:
[url:brqplbeg]http://groups.google.es/group/harbour-devel/browse_thread/thread/579a610cb92a0c93?hl=es#[/url:brqplbeg][/quote:brqplbeg]
After I made this:
[quote:brqplbeg]If you move /Users/anto/fivemac/ to /Users/anto/harbour/harbour/addons/fivemac,
you can even use:
hb_setEnv( "HB_COMPILER", "gcc" )
hb_setEnv( "HBMK_OPTIONS", 'fivemac.hbc' )[/quote:brqplbeg]
HBIDE didn't work anymore <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> After starting HBIDE hangs. Removing addons/fivemac didn't change anything. At the moment I didn't have enough time to find out what happened. I think it is better to wait till HBIDE is more stable (on Mac OS X)... I will concentrate on using gcc instead of Borland C on Windows first...
|
Building FiveMac apps from HBIDE !!!
|
Fixed a little HBIDE bug that was causing the edited source code not to be seen:
[img:1b3zhpco]http://a.imageshack.us/img31/4673/picture3lj.png[/img:1b3zhpco]
|
Building FiveMac apps from HBIDE !!!
|
[img:306lk8kj]http://img408.imageshack.us/img408/9371/screenshot20100714at114.png[/img:306lk8kj]
|
Building HBIDE for OSX
|
download QT from here:
[url:1txu69g4]http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.3.dmg[/url:1txu69g4]
do from the OSX terminal:
export HB_WITH_QT=/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtCore.framework/Headers
and from Harbour folder do:
make
and Harbour get built with QT support <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
libhbqt.a, libhbqtcore.a, libhbqtgui.a and libhbqtnetwork.a
Then go to contrib/hbide and do:
../../bin/darwin/clang/hbmk2 hbide.hbp
|
Building HBIDE for OSX
|
Thanks for the instructions. It works great.
|
Building HBIDE for OSX
|
Ruediger,
Currently there is a HBIDE bug that we have commented to Pritpal and it is that the source code text is not visible.
have you tried to type in HBIDE some source code lines ?
|
Building HBIDE for OSX
|
[quote="Antonio Linares":dtkl12pw]
have you tried to type in HBIDE some source code lines ?[/quote:dtkl12pw]
At the moment not, because of lack of time. Later I will go on with your other instructions: [url:dtkl12pw]http://forums.fivetechsupport.com/viewtopic.php?t=19344[/url:dtkl12pw].
|
Building HBIDE for OSX
|
Building it for OSX Leopard 32 bits (10.5.x):
do from the OSX terminal:
export HB_WITH_QT=/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/QtCore.framework/Headers
and from Harbour folder do:
make
Then go to contrib/hbide and do:
../../bin/darwin/gcc/hbmk2 hbide.hbp
|
Building HBIDE for OSX
|
[quote:ufy3vqrl]I have such a different prospective now after finally understanding.[/quote:ufy3vqrl]Thanks so much, I think it is finally clear to me.
|
Building HBIDE for OSX
|
It's still hard to believe...
|
Building HBIDE for OSX
|
[url][/url]Building it for OSX Lion (10.7.x):
download QT from here:
[url:1ni6zgm4]http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.4.dmg[/url:1ni6zgm4]
do from the OSX terminal:
export HB_WITH_QT=/Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/QtCore.framework/Headers
and from Harbour folder do:
make
Then go to contrib/hbide and do:
../../bin/darwin/clang/hbmk2 hbide.hbp
|
Building HBIDE for OSX
|
You can download it from:
[url:39vxiph5]http://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=hbide.app.zip&can=2&q=[/url:39vxiph5]
|
Building HBIDE for OSX
|
Antonio .Seria posible una nueva version de Harbour para fiveMac ? , la que tenemos es bastante antigua.
Saludos.
|
Building HBIDE for OSX
|
Manuel,
Aqui la tienes, construida a fecha de hoy <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:38k9ma3z]http://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=harbour_osx_lion_20120126.zip&can=2&q=[/url:38k9ma3z]
|
Building HBIDE for OSX
|
Gracias. Esto es rapidez ....
Saludos.
|
Building Harbour + BCC7.3
|
I'm trying to rebuild latest Harbour using this batch file
[quote:ng07j26k]
set HB_BUILD_DYN=no
set HB_BUILD_CONTRIB_DYN=no
set path=j:\harbour\bcc7\bin
win-make.exe
[/quote:ng07j26k]
But it aborted with this error. Any idea where I should start looking? TIA
[code=fw:ng07j26k]<div class="fw" id="{CB}" style="font-family: monospace;"><br />brcc32.exe -I. -I../../../../../include -foharbour.res ../../../harbour.rc<br />Borland <span style="color: #0000ff;">Resource</span> Compiler Version <span style="color: #000000;">5.40</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1990</span>, <span style="color: #000000;">1999</span> Inprise Corporation. All rights reserved.<br /><br />Error harbour.rc <span style="color: #000000;">18</span> <span style="color: #000000;">11</span>: <span style="color: #000000;">Cannot</span> open file: <span style="color: #000000;">winver</span>.h<br />../../../../../config/rules.mk:<span style="color: #000000;">110</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'harbour.res'</span> failed<br /> </div>[/code:ng07j26k]
|
Building Harbour + BCC7.3
|
Hi Hua,
Change your PATH to this: ( Adjust the path to your )
[code=fw:wgei4flu]<div class="fw" id="{CB}" style="font-family: monospace;">set path=d:\bcc\bin;d:\bcc\include;d:\bcc\lib;d:\bcc\lib\psdk;d:\hb\bin;d:\hb\include;d:\hb\lib</div>[/code:wgei4flu]
Where the harbour will be installed
[code=fw:wgei4flu]<div class="fw" id="{CB}" style="font-family: monospace;">set HB_INSTALL_PREFIX=d:\hb</div>[/code:wgei4flu]
[b:wgei4flu]NOTE:
Check the PATH inside files .CFG in your BCC\BIN\[/b:wgei4flu]
And:
win-make clean
win-make install
<!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
|
Building Harbour + BCC7.3
|
Thanks for your reply Lailton.
I tried a few things to make it work. These combo seems to do it.
1. Copy BC7 to local drive instead of network drive
2. Update bcc32.cfg and ilink32.cfg to reflect the relocation
3. Overwrite unicows.lib in \bc7\lib\psdk with the one in \harbour\lib\3rd\win\bcc. If this is not done halfwy during compilation it'll abort saying unicows.dll not found
|
Building Harbour + FWH apps from Visual Studio 2012
|
[img:1vvqumfk]http://img41.imageshack.us/img41/9337/captureina.png[/img:1vvqumfk]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Required settings (in progress, refresh this)
Create a new project this way:
[img:gjw5ie3l]http://img706.imageshack.us/img706/6686/captureuxv.png[/img:gjw5ie3l]
Add your PRGs as explained here:
[url:gjw5ie3l]https://code.google.com/p/fivewinrt/wiki/Compiling_PRGs_from_Visual_Studio_2012[/url:gjw5ie3l]
Libraries to link:
[img:gjw5ie3l]http://img824.imageshack.us/img824/838/captureqft.png[/img:gjw5ie3l]
[img:gjw5ie3l]http://img195.imageshack.us/img195/6883/capturees.png[/img:gjw5ie3l]
[img:gjw5ie3l]http://img839.imageshack.us/img839/4734/capturemex.png[/img:gjw5ie3l]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hi Antonio,
Is .net framework required for compiled exe to be run?
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
No, not at all <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Harbour + FWH apps from Visual Studio 2012
|
Antonio
Great news
which 2012 express did you chose ?
Visual Studio Express 2012 for Windows 8
or
Visual Studio Express 2012 for Windows Desktop
Richard
|
Building Harbour + FWH apps from Visual Studio 2012
|
Richard,
I use VIsual Studio 2012 Ultimate. I think it is the most complete one. I get it free thanks to the University <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[[img:frgslzbr]http://img594.imageshack.us/img594/4158/captureovh.png[/img:frgslzbr]
In fact students get all the Microsoft products for free, including Windows, Windows servers, Visual Studio, etc:
[url:frgslzbr]http://forums.fivetechsupport.com/viewtopic.php?p=91275#p91275[/url:frgslzbr]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hi Antonio,
Trying to compile tutor02.prg in vs2012 as you written above.
I could not find the Comctl32.lib, MSImg32.lib, OleDbg.lib and Version.lib.
I got this error and can not build prg.
[code=fw:96dvsv0e]<div class="fw" id="{CB}" style="font-family: monospace;">c:\users\hp\documents\visual studio <span style="color: #000000;">2012</span>\projects\tutor02\tutor02\tutor02.c<span style="color: #000000;">(</span><span style="color: #000000;">78</span><span style="color: #000000;">)</span>: <span style="color: #000000;">fatal</span> error C1010: <span style="color: #000000;">unexpected</span> end <span style="color: #0000ff;">of</span> file <span style="color: #00C800;">while</span> looking <span style="color: #00C800;">for</span> precompiled header. Did you forget <span style="color: #0000ff;">to</span> add <span style="color: #ff0000;">'#include "stdafx.h"'</span> <span style="color: #0000ff;">to</span> your source?</div>[/code:96dvsv0e]
Any help?
Thanks
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
Those libs are here:
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\
Remove the (x86) is you are using a Windows 32 bits.
In the VS2012 project properties select not to use precompiled headers
|
Building Harbour + FWH apps from Visual Studio 2012
|
Antonio,
Is it possible to zip tutor02 project files and send me?
Thanks.
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
Here you have it:
[url:ix8j9xip]https://code.google.com/p/fivewin-contributions/downloads/detail?name=tutor02_VS2012.zip[/url:ix8j9xip]
A picture is worth a thousands words <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:ix8j9xip]http://img24.imageshack.us/img24/8564/2ttl.png[/img:ix8j9xip]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Thank you Antonio,
I have achieved to compile and run it. Is it faster than normal compile?
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
All C compilers (and makes) are quite similar so its not a matter of speed, it is more a matter of using Microsoft tools, that it is something that each developer/company may assess in a different way.
Microsoft C provides a great low level debugger, which it is something very usefull on some (rare) ocassions, for example we can visually trace Harbour activity, how it boots, etc. It also includes a great low level profiler. These are very good tools that we don't have with Borland C (in fact, its getting harder to get the C compiler from Borland, as they don't allow redistribution of their free files, etc).
And though I admit that gcc is a great tool, the fact that we have to install MinGW, and change many things related to the way we are used to work makes me think its a clever desition to use Microsoft Visual C, that we can easily get for free (express version) from Microsoft.
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hello Antonio ,
great job
works with VS 2010 too
[img:eptp4rad]http://img19.imageshack.us/img19/3570/saj0.jpg[/img:eptp4rad]
Maurizio
<!-- m --><a class="postlink" href="http://www.nipeservice.com">http://www.nipeservice.com</a><!-- m -->
|
Building Harbour + FWH apps from Visual Studio 2012
|
Maurizio,
thanks for the feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Harbour + FWH apps from Visual Studio 2012
|
Antonio,
Is it posible to build applications with VS2012 or MSVC2012 using the build.bat file?.
Thanks
|
Building Harbour + FWH apps from Visual Studio 2012
|
FWH provides samples/buildh32.bat to build Harbour and FWH apps using VS2010/2012 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Harbour + FWH apps from Visual Studio 2012
|
Antonio, would somehow make our screens, (resources) within the VS?
|
Building Harbour + FWH apps from Visual Studio 2012
|
Norberto,
I have not reviewed it yet, I will do it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hi Antonio,
I have compiled and run the your tutor02 project file in debug mode. When I try to Release mode, it compiles and creates the exe file in Release directory but it does not work anymore.
Any comment? Is exe that is compiled in debug mode safe for end user?
I have also tried another computer with xp. I copied tutor02.exe (Debug). and try to run it. it requires MSVCR110d.dll to run it. After copying the dll file, it runs ok.
I have also tried to release exe. The error message says that requires the MSVCR110.dll. I have found and copied to the path. but it does not run.
Release mode log:
[code=fw:10lyidz1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">1</span>>------ Rebuild All started: <span style="color: #000000;">Project</span>: <span style="color: #000000;">tutor02</span>, Configuration: <span style="color: #0000ff;">Release</span> Win32 ------<br /><span style="color: #000000;">1</span>> tutor02.c<br /><span style="color: #000000;">1</span>> Creating <span style="color: #0000ff;">library</span> C:\fwteam\samples\tutor02\<span style="color: #0000ff;">Release</span>\tutor02.lib and object C:\fwteam\samples\tutor02\<span style="color: #0000ff;">Release</span>\tutor02.<span style="color: #0000ff;">exp</span><br /><span style="color: #000000;">1</span>>LINK : <span style="color: #000000;">warning</span> LNK4098: <span style="color: #000000;">defaultlib</span> <span style="color: #ff0000;">'LIBCMT'</span> conflicts with use <span style="color: #0000ff;">of</span> other libs; use /NODEFAULTLIB:<span style="color: #0000ff;">library</span><br /><span style="color: #000000;">1</span>> Generating code<br /><span style="color: #000000;">1</span>> Finished generating code<br /><span style="color: #000000;">1</span>> tutor02.vcxproj -> C:\fwteam\samples\tutor02\<span style="color: #0000ff;">Release</span>\tutor02.exe<br />========== Rebuild All: <span style="color: #000000;">1</span> succeeded, <span style="color: #000000;">0</span> failed, <span style="color: #000000;">0</span> skipped ==========<br /> </div>[/code:10lyidz1]
Thanks.
|
Building Harbour + FWH apps from Visual Studio 2012
|
Antonio,
Any comment?
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
It seems as we need to set some flag for not using the DLL, as if I build it using buildh32.bat I get an EXE that does not require such DLL.
Also, I have noticed what you have described for release mode. I don't know yet why such different behavior occurs.
|
Building Harbour + FWH apps from Visual Studio 2012
|
Antonio, yo he obtenido el mismo mensaje
Antonio, I've got the same message
Saludos - regards
|
Building Harbour + FWH apps from Visual Studio 2012
|
Cristobal,
The question is to find why there is such difference
|
Building Harbour + FWH apps from Visual Studio 2012
|
..
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
There is nothing else that I can say about it. Just do some research on the VS IDE, google for it, and try to find the differences.
I will also try it here. In the meantime, you can build your app using buildh32.bat
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
I think I know where the difference may come from:
FWH has been built using MSVC2010. Now I am organizing it to build it with MSVC2012, once it is ready
I will check if the problem gets solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Harbour + FWH apps from Visual Studio 2012
|
[quote="Antonio Linares":29ejwyjd]Hakan,
I think I know where the difference may come from:
FWH has been built using MSVC2010. Now I am organizing it to build it with MSVC2012, once it is ready
I will check if the problem gets solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:29ejwyjd]
Thanks Antonio.
waiting.
|
Building Harbour + FWH apps from Visual Studio 2012
|
Building Harbour also with VS2012 this way:
[code=fw:35cf221b]<div class="fw" id="{CB}" style="font-family: monospace;"><br />call <span style="color: #ff0000;">"%ProgramFiles(x86)%<span style="color: #000000;">\M</span>icrosoft Visual Studio 11.0<span style="color: #000000;">\V</span>C<span style="color: #000000;">\v</span>cvarsall.bat"</span><br />win-make.exe<br /> </div>[/code:35cf221b]
next, build FWH with VS2012...
|
Building Harbour + FWH apps from Visual Studio 2012
|
Harbour already built with VS2012 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Now building FWH with VS2012. There is a missing file that I am trying to locate on VS2012:
[quote:3418vsmo]fatal error C1083: Cannot open include file: 'tmschema.h': No such file or directory[/quote:3418vsmo]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Solution found:
#if _MSC_VER < 1700 // Before Visual Studio 2012
#include <tmschema.h>
#endif
[url:3j57rc6s]https://code.google.com/p/evita-common-lisp/source/browse/listener/winapp/precomp.h[/url:3j57rc6s]
|
Building Harbour + FWH apps from Visual Studio 2012
|
This is the right fix:
[code=fw:26ibq2ru]<div class="fw" id="{CB}" style="font-family: monospace;">#if _MSC_VER < <span style="color: #000000;">1700</span> <span style="color: #B900B9;">// Before Visual Studio 2012</span><br /><span style="color: #00D7D7;">#include</span> <tmschema.h><br />#else<br /><span style="color: #00D7D7;">#include</span> <vsstyle.h><br />#endif</div>[/code:26ibq2ru]
|
Building Harbour + FWH apps from Visual Studio 2012
|
FWH already built using VS2012 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
A much simpler and more VS2012 friendly buildh32.bat
buildh32.bat
[code=fw:27fumi7s]<div class="fw" id="{CB}" style="font-family: monospace;">@ECHO OFF<br />CLS<br />ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">13.06</span> <span style="color: #000000;">(</span>MSVC++<span style="color: #000000;">)</span> Jun. <span style="color: #000000;">2013</span> Harbour development <span style="color: #0000ff;">power</span> ³Ü<br />ECHO ³ <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2013</span> <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span>/<span style="color: #000000;">8</span> ³Û<br />ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ<br />ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<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 />call <span style="color: #ff0000;">"%ProgramFiles(x86)%<span style="color: #000000;">\M</span>icrosoft Visual Studio 11.0<span style="color: #000000;">\V</span>C<span style="color: #000000;">\v</span>cvarsall.bat"</span><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%FWDIR%"</span> == <span style="color: #ff0000;">""</span> set FWDIR=.\..<br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%HBDIR%"</span> == <span style="color: #ff0000;">""</span> set HBDIR=c:\harbour<br /><br />ECHO Compiling...<br /><br />set fwh=%FWDIR%<br />set hdir=%HBDIR%<br />set hdirl=%hdir%\lib\vc32<br />set sdkdir=%Windowssdkdir%Lib\win8\um\x86<br /><br />%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log <span style="color: #000000;">2</span>> warnings.log<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO COMPILEERROR<br />@type comp.log<br />@type warnings.log<br /><br />cl -TP -W3 -c /I%hdir%\include /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 rc.exe -r -d__FLAT__ %<span style="color: #000000;">1</span><br /><br />echo %<span style="color: #000000;">1</span>.obj > msvc.tmp<br /><br />echo %fwh%\lib\FiveH32.lib %fwh%\lib\FiveHC32.lib >> msvc.tmp<br /><br />echo %hdirl%\hbrtl.lib >> msvc.tmp<br />echo %hdirl%\hbvm.lib >> msvc.tmp<br />echo %hdirl%\gtgui.lib >> msvc.tmp<br />echo %hdirl%\hblang.lib >> msvc.tmp<br />echo %hdirl%\hbmacro.lib >> msvc.tmp<br />echo %hdirl%\hbrdd.lib >> msvc.tmp<br />echo %hdirl%\rddntx.lib >> msvc.tmp<br />echo %hdirl%\rddcdx.lib >> msvc.tmp<br />echo %hdirl%\rddfpt.lib >> msvc.tmp<br />echo %hdirl%\hbsix.lib >> msvc.tmp<br />echo %hdirl%\hbdebug.lib >> msvc.tmp<br />echo %hdirl%\hbcommon.lib >> msvc.tmp<br />echo %hdirl%\hbpp.lib >> msvc.tmp<br />echo %hdirl%\hbcpage.lib >> msvc.tmp<br />echo %hdirl%\hbwin.lib >> msvc.tmp<br />echo %hdirl%\hbcplr.lib >> msvc.tmp<br />echo %hdirl%\hbpcre.lib >> msvc.tmp<br />echo %hdirl%\hbct.lib >> msvc.tmp<br />echo %hdirl%\xhb.lib >> msvc.tmp<br />echo %hdirl%\png.lib >> msvc.tmp<br />echo %hdirl%\hbzlib.lib >> msvc.tmp<br /><br />rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />rem echo %hdirl%\rddads.lib >> msvc.tmp<br />rem echo %hdirl%\ace32.lib >> msvc.tmp<br /><br />echo kernel32.lib >> msvc.tmp<br />echo user32.lib >> msvc.tmp<br />echo gdi32.lib >> msvc.tmp<br />echo winspool.lib >> msvc.tmp<br />echo comctl32.lib >> msvc.tmp<br />echo comdlg32.lib >> msvc.tmp<br />echo advapi32.lib >> msvc.tmp<br />echo shell32.lib >> msvc.tmp<br />echo ole32.lib >> msvc.tmp<br />echo oleaut32.lib >> msvc.tmp<br />echo uuid.lib >> msvc.tmp<br />echo odbc32.lib >> msvc.tmp<br />echo odbccp32.lib >> msvc.tmp<br />echo iphlpapi.lib >> msvc.tmp<br />echo mpr.lib >> msvc.tmp<br />echo version.lib >> msvc.tmp<br />echo wsock32.lib >> msvc.tmp<br />echo msimg32.lib >> msvc.tmp<br />echo oledlg.lib >> msvc.tmp<br />echo psapi.lib >> msvc.tmp<br />echo gdiplus.lib >> msvc.tmp<br />echo winmm.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 />link @msvc.tmp /nologo /subsystem:<span style="color: #000000;">windows</span> /force:<span style="color: #000000;">multiple</span> /NODEFAULTLIB:<span style="color: #000000;">libc</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;">COMPILEERROR</span><br />@type comp.log<br />@type warnings.log<br />ECHO * Compiling errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * Linking 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;">[</span>Program<span style="color: #000000;">]</span> <span style="color: #000000;">{</span>-- No especifiques la extensi¢n PRG<br />ECHO <span style="color: #000000;">{</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:27fumi7s]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
Already tested and the same problem: release version does not show, debug version runs fine.
And right now I just realized that we can't debug the release version from the VS2012 IDE. Only the debug version can be debugged.
I think traces should be placed in the Harbour boot to check how far we go, and why it is not showing. Thinking about
the best way to do this.
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
Solved! It is working fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
I compared the debug and release versions options that VS2012 use and noticed this difference:
"No whole program optimization" used in the debug version and not in the release. Just change that option in the
release version and it will work fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:40jv7qos]http://img27.imageshack.us/img27/5205/8yv0.png[/img:40jv7qos]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
Here it is the full project with the release and debug versions included (EXEs) so you can run them <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:20qaywny]https://code.google.com/p/fivewin-contributions/downloads/detail?name=tutor02_msvc2012_ok.zip[/url:20qaywny]
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hi Antonio,
Thank you very much for your effort.
Now, it is time to port a small project to vs2012. I will start tomorrow.
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hakan,
Please share with us your steps, difficulties, etc. thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hi Antonio,
Thanks a lot for giving news ideas to us..!
So if this IDE works fine with FiveWin + Harbour + MSVC then we do not need any other IDE like xMate, USTUDIO. Please correct this if it is worng.
Thanks
Shridhar
|
Building Harbour + FWH apps from Visual Studio 2012
|
Shridhar,
yes, thats right. You can edit, build and run your app from Visual Studio 2012 Express <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
if you use the Visual Studio 2012 Pro then you can also edit your resources from it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (this is not available in the Visual Studio 2012 Express).
|
Building Harbour + FWH apps from Visual Studio 2012
|
Hi Antonio,
Thanks a lot for the valuable information...!
I was about to buy USTUDIO IDE but now, first I have to try the MSVC IDE env. After I canl decide whether USTUDIO have to buy or not.
Thanks
Shridhar
|
Building Harbour + FWH apps from Visual Studio 2012
|
Shridhar,
Still it is missing the implementation of syntax coloring for PRGs. Surely there is a way but we need to google for it and see how easy or difficult it is <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Building Harbour 3.4 for BCC outside MSYS
|
Hi All:
As we all know, Harbour developers are killing BCC support next year. Furthermore, Harbour 3.4, the superset of of original Harbour, does not provide tools to build the compiler without MSYS. Personally, I hate to use MSYS for Harbour creation.
Those, particularly BCC users, who wish to try to build Harbour 3.4, I have made simple tools to create it without MSYS.
Followings are steps how to build Harbour 3.4 without MSYS:
1. Download/clone the latest source code from [url:28epmzmq]https://github.com/vszakats/harbour-core.git[/url:28epmzmq]
Copy the whole folders/files onto a working folder
2. Download patches for Borland compiler. This is required because developers no longer support Borland compilers.
Patches are very minimal, no functionality is affected. You may inspect the *.diff files on patches folders.
Patches are available at: [url:28epmzmq]http://www.mediafire.com/file/6573m6tdgwizvid/patches.zip[/url:28epmzmq]
Unzip the patches into working folder, overwrite is required
3. Make sure GIT.EXE is in your environment path. GIT is required to create version control file -> include\_repover.txt
4. Inspect/edit the content of make_bc.bat and make_bc64.bat as well to make sure that the the folder directories envars
are existent on machine
5. For 32-bit, at command prompt, execute: make_bc; you may direct output for log, by issuing: make_bc > bcc73.log
For 64-bit, at command prompt, execute: make_bc64; you direct output for log, by issuing: make_bc64 > bcc7364.log
6. You may find some warnings when building 64-bit version, but that's OK, and they are of 3rd party files
7. To clean the build, issue: make_bc clean for 32-bit, or make_bc64 clean for 64-bit
Have fun!
ps: I just added makefiles for: MSVC, GCC, and MSVC-CLANG
|
Building Harbour 3.4 for BCC outside MSYS
|
Hi Andi,
[quote="andijahja":3qjamkw9]As we all know, Harbour developers are killing BCC support next year.[/quote:3qjamkw9]
I didn't know that. This is another good reason to quit using Harbour.
EMG
|
Building Harbour 3.4 for BCC outside MSYS
|
Ciao Enrico,
if you don't mind... what are the good reason you have to consider quitting Harbour?
What do you recommend to use instead?
KR
|
Building Harbour 3.4 for BCC outside MSYS
|
Essentially, the bad attitude of the developers. Personally, I'm using xHarbour.
EMG
|
Building Harbour 3.4 for BCC outside MSYS
|
Harbour works great using Microsoft Visual Studio
Further more, Harbour 3.4 is not the official Harbour. It is just a Harbour fork developed by Viktor
There is no reason to worry at all <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Time to consider to migrate to Microsoft Visual Studio
|
Building Harbour 3.4 for BCC outside MSYS
|
Antonio
I have considered migrating to Visual Studio unfortunately just about every Windows 7 and Windows 10 update roll-up contains multiple dot net security patches ... I may have to eventually migrate to Visual Studio ... I just dislike polluting my machine with all the bloat of dot net.
If someone could extract out ONLY the C++ compiler\Linker and load it as a stand alone compiler from visual studio I would probably jump in that direction.
Rick Lipkin
|
Building Harbour 3.4 for BCC outside MSYS
|
[quote="Rick Lipkin":3rg6y3tc]Antonio
I have considered migrating to Visual Studio unfortunately just about every Windows 7 and Windows 10 update roll-up contains multiple dot net security patches ... I may have to eventually migrate to Visual Studio ... I just dislike polluting my machine with all the bloat of dot net.
If someone could extract out ONLY the C++ compiler\Linker and load it as a stand alone compiler from visual studio I would probably jump in that direction.
Rick Lipkin[/quote:3rg6y3tc]
Hi Rick:
Followings are links for the latest version of stand-alone MSVC 2017:
32 bit:
<!-- m --><a class="postlink" href="http://www.mediafire.com/file/giv36323vxqoyqi/vc1532_commandline.7z">http://www.mediafire.com/file/giv36323v ... andline.7z</a><!-- m -->
Microsoft (R) C/C++ Optimizing Compiler Version 19.11.25547 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
64 bit:
<!-- m --><a class="postlink" href="http://www.mediafire.com/file/8i0bqipwnqd5rln/vc1564_commandline.7z">http://www.mediafire.com/file/8i0bqipwn ... andline.7z</a><!-- m -->
Microsoft (R) C/C++ Optimizing Compiler Version 19.11.25547 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
|
Building Harbour 3.4 for BCC outside MSYS
|
Andi
BRILLIANT !! Now that's what I'm talking About <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ... I may need some help getting the config correct and a working make file ..
Thanks
Rick Lipkin
[img:7hzoidib]http://i63.tinypic.com/a2xi5e.jpg[/img:7hzoidib]
[img:7hzoidib]http://i63.tinypic.com/11kf6fr.jpg[/img:7hzoidib]
|
Building Harbour 3.4 for BCC outside MSYS
|
[quote="Rick Lipkin":1snqj8j9]Andi
BRILLIANT !! Now that's what I'm talking About <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ... I may need some help getting the config correct and a working make file ..
Thanks
Rick Lipkin
[/quote:1snqj8j9]
Hi Rick:
Followings are examples, you may have to adjust to match your environment:
32 bit:
[code=fw:1snqj8j9]<div class="fw" id="{CB}" style="font-family: monospace;">@echo off<br /><br />REM THIS IS MSVC VERSION<br />SET __VC__=<span style="color: #000000;">15</span><br /><br />REM THIS IS <span style="color: #0000ff;">WHERE</span> YOUR HARBOUR PATH IS<br />REM THIS IS <span style="color: #00C800;">FOR</span> MY <span style="color: #00C800;">PRIVATE</span> USE, <span style="color: #0000ff;">ADJUST</span> IT ACCORDINGLY AS PER YOUR MACHINE<br />SET HARBOURDIR=..\HRB-DEV<br />SET HARBOURLIB=%HARBOURDIR%\lib\VC%__VC__%<br />SET HARBOUREXE=%HARBOURDIR%\bin\VC%__VC__%\harbour.exe<br /><br />REM THIS IS <span style="color: #0000ff;">WHERE</span> WE PUT MSVC COMMAND LINE<br />REM I PLACE IT IN D:\VC15<br />SET CC_DIR=D:\VC%__VC__%<br /><br />SET _PATH=%PATH%<br />SET PATH=%CC_DIR%\BIN;%PATH%<br />SET _MYLIB=fivehc32.lib fivehcm.lib rddads.lib hbziparc.lib hbmzip.lib hbzlib.lib hbrdd.lib hbsix.lib hbhsx.lib rddntx.lib rddcdx.lib rddfpt.lib hbrtl.lib hbvm.lib gtgui.lib hblang.lib hbmacro.lib hbcommon.lib hbpcre2.lib hbpp.lib hbwin32.lib hbct.lib hbcplr.lib<br />SET COMPILERLIBS=imm32.lib msimg32.lib gdiplus.lib uuid.lib psapi.lib iphlpapi.lib version.lib shell32.lib kernel32.lib user32.lib advapi32.lib gdi32.lib winspool.lib ole32.lib oleaut32.lib ws2_32.lib mpr.lib winmm.lib comctl32.lib comdlg32.lib<br /><br />REM THIS IS THE PATH <span style="color: #0000ff;">TO</span> FWH<br />SET FWHDIR=..\FWH<br />SET RESFILE=<br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%1"</span> == <span style="color: #ff0000;">""</span> goto syntax<br /><span style="color: #00C800;">if</span> not exist %<span style="color: #000000;">1</span>.prg goto noexist<br /><span style="color: #00C800;">if</span> not exist %HARBOUREXE% goto noharbour<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe del %<span style="color: #000000;">1</span>.exe<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.c del %<span style="color: #000000;">1</span>.c<br /><br />%HARBOUREXE% %<span style="color: #000000;">1</span> /q0 /n /i%HARBOURDIR%\include /i%FWHDIR%\INCLUDE /gc3 /es2 /w /p<br /><span style="color: #00C800;">if</span> not exist %<span style="color: #000000;">1</span>.c goto end<br />CL -D__WIN32__ -DWIN32 -DHB_OS_WIN32 -I%CC_DIR%\INCLUDE -I%FWHDIR%\INCLUDE -I%HARBOURDIR%\include -c -Fo%<span style="color: #000000;">1</span>.obj %<span style="color: #000000;">1</span>.c<br /><span style="color: #00C800;">if</span> not exist %<span style="color: #000000;">1</span>.obj goto end<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.res DEL %<span style="color: #000000;">1</span>.res<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.rc RC /i%CC_DIR%\INCLUDE /r /fo %<span style="color: #000000;">1</span>.res %<span style="color: #000000;">1</span>.rc<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.res set RESFILE=%<span style="color: #000000;">1</span>.res<br />LINK /SUBSYSTEM:<span style="color: #000000;">WINDOWS</span> /LIBPATH:%CC_DIR%\LIB /LIBPATH:%HARBOURLIB% /OUT:%<span style="color: #000000;">1</span>.exe %<span style="color: #000000;">1</span>.obj %_MYLIB% %COMPILERLIBS% %RESFILE%<br /><br />:<span style="color: #000000;">okay</span><br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.bak del %<span style="color: #000000;">1</span>.bak<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe dir %<span style="color: #000000;">1</span>.exe<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe echo.<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe echo %<span style="color: #000000;">1</span>.exe succesfully built<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe echo.<br />goto end<br /><br />:<span style="color: #000000;">syntax</span><br />echo.<br />echo Syntax: <span style="color: #000000;">VC</span> program <span style="color: #000000;">[</span> <span style="color: #00C800;">do</span> not specify prg extension <span style="color: #000000;">]</span><br />echo.<br />goto end<br /><br />:<span style="color: #000000;">noexist</span><br />echo.<br />echo Cannot find %<span style="color: #000000;">1</span>.prg file<br />echo.<br />goto end<br /><br />:<span style="color: #000000;">noharbour</span><br />echo.<br />echo Cannot find Harbour.exe<br />echo.<br />goto end<br /><br />:<span style="color: #000000;">end</span><br />set PATH=%_PATH%<br />set _PATH=<br />set HARBOUREXE=<br />set HARBOURLIB=<br />set HARBOURDIR=<br />set _MYLIB=<br />SET FWHDIR=<br />SET CC_DIR=<br />SET __VC__=<br />SET RESFILE=<br /> </div>[/code:1snqj8j9]
64 bit:
[code=fw:1snqj8j9]<div class="fw" id="{CB}" style="font-family: monospace;">@echo off<br /><br />SET __VC__=<span style="color: #000000;">1564</span><br />SET HARBOURDIR=..\HRB-DEV<br />SET HARBOURLIB=%HARBOURDIR%\lib\VC%__VC__%<br />SET HARBOUREXE=%HARBOURDIR%\bin\VC%__VC__%\harbour.exe<br />SET _PATH=%PATH%<br />SET CC_DIR=..\VC%__VC__%<br />SET PATH=%CC_DIR%\BIN;%PATH%<br />REM CHECK FWH FILE <span style="color: #0000ff;">NAME</span> <span style="color: #00C800;">FOR</span> MSVC64 AS FIVEH64.LIB AND FIVEHC64.LIB ARE JUST MY GUESS :<span style="color: #000000;">)</span><br />SET _MYLIB=fiveh64.lib fivehc64.lib rddads.lib hbziparc.lib hbmzip.lib hbzlib.lib hbrdd.lib hbsix.lib hbhsx.lib rddntx.lib rddcdx.lib rddfpt.lib hbrtl.lib hbvm.lib gtgui.lib hblang.lib hbmacro.lib hbcommon.lib hbpcre2.lib hbpp.lib hbwin32.lib hbct.lib hbcplr.lib<br />SET COMPILERLIBS=imm32.lib msimg32.lib gdiplus.lib uuid.lib psapi.lib iphlpapi.lib version.lib shell32.lib kernel32.lib user32.lib advapi32.lib gdi32.lib winspool.lib ole32.lib oleaut32.lib ws2_32.lib mpr.lib winmm.lib comctl32.lib comdlg32.lib<br /><br />SET FWHDIR=..\FWH<br />SET RESFILE=<br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%1"</span> == <span style="color: #ff0000;">""</span> goto syntax<br /><span style="color: #00C800;">if</span> not exist %<span style="color: #000000;">1</span>.prg goto noexist<br /><span style="color: #00C800;">if</span> not exist %HARBOUREXE% goto noharbour<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe del %<span style="color: #000000;">1</span>.exe<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.c del %<span style="color: #000000;">1</span>.c<br /><br />%HARBOUREXE% %<span style="color: #000000;">1</span> -D__64__ /q0 /n /i%HARBOURDIR%\include /i%FWHDIR%\INCLUDE /gc3 /es2 /w /p<br /><span style="color: #00C800;">if</span> not exist %<span style="color: #000000;">1</span>.c goto end<br />cl -D__WIN32__ -DWIN32 -DHB_OS_WIN_64 -D_WIN64 -I%CC_DIR%\INCLUDE -I%FWHDIR%\INCLUDE -I%HARBOURDIR%\include -c -Fo%<span style="color: #000000;">1</span>.obj %<span style="color: #000000;">1</span>.c<br /><span style="color: #00C800;">if</span> not exist %<span style="color: #000000;">1</span>.obj goto end<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.res DEL %<span style="color: #000000;">1</span>.res<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.rc rc /i%CC_DIR%\INCLUDE /d__64__ /r /fo %<span style="color: #000000;">1</span>.res %<span style="color: #000000;">1</span>.rc<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.res set RESFILE=%<span style="color: #000000;">1</span>.res<br />LINK /SUBSYSTEM:<span style="color: #000000;">WINDOWS</span> /LIBPATH:%CC_DIR%\LIB /LIBPATH:%HARBOURLIB% /OUT:%<span style="color: #000000;">1</span>.exe %<span style="color: #000000;">1</span>.obj %_MYLIB% %COMPILERLIBS% %RESFILE%<br /><br />:<span style="color: #000000;">okay</span><br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.bak del %<span style="color: #000000;">1</span>.bak<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe dir %<span style="color: #000000;">1</span>.exe<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe echo.<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe echo %<span style="color: #000000;">1</span>.exe succesfully built<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.exe echo.<br />goto end<br /><br />:<span style="color: #000000;">syntax</span><br />echo.<br />echo Syntax: <span style="color: #000000;">VC64</span> program <span style="color: #000000;">[</span> <span style="color: #00C800;">do</span> not specify prg extension <span style="color: #000000;">]</span><br />echo.<br />goto end<br /><br />:<span style="color: #000000;">noexist</span><br />echo.<br />echo Cannot find %<span style="color: #000000;">1</span>.prg file<br />echo.<br />goto end<br /><br />:<span style="color: #000000;">noharbour</span><br />echo.<br />echo Cannot find Harbour.exe<br />echo.<br />goto end<br /><br />:<span style="color: #000000;">end</span><br />set PATH=%_PATH%<br />set _PATH=<br />set HARBOUREXE=<br />set HARBOURLIB=<br />set HARBOURDIR=<br />set _MYLIB=<br />SET FWHDIR=<br />SET RESFILE=<br />SET CC_DIR=<br />SET __VC__=<br /> </div>[/code:1snqj8j9]
|
Building Harbour 3.4 for BCC outside MSYS
|
Andi
Thank you for your help .. going to work on this Monday morning.
Rick Lipkin
|
Building Harbour 3.4 for BCC outside MSYS
|
Andi,
have you also a makefile-template for more then one .prg?
|
Building Harbour 3.4 for BCC outside MSYS
|
[quote="byte-one":2u419g74]Andi,
have you also a makefile-template for more then one .prg?[/quote:2u419g74]
Günther,
hbmk2 gives you smart make process as follows:
[code=fw:2u419g74]<div class="fw" id="{CB}" style="font-family: monospace;">console example:<br /><span style="color: #00C800;">for</span> single program: <span style="color: #000000;">hbmk2</span> -plat=win -comp=bcc -lhbmainstd program1.prg<br /><span style="color: #00C800;">for</span> multi prg program: <span style="color: #000000;">hbmk2</span> -plat=win -comp=bcc -lhbmainstd program1.prg program2.prg<br /><br />gui example:<br /><span style="color: #00C800;">for</span> single program: <span style="color: #000000;">hbmk2</span> -plat=win -comp=bcc -lhbmainwin program1.prg<br /><span style="color: #00C800;">for</span> multi program: <span style="color: #000000;">hbmk2</span> -plat=win -comp=bcc -lhbmainwin -lfive32 -lfivehc32 program1.prg program2.prg<br /><br />example <span style="color: #00C800;">for</span> many prg with response file:<br /><span style="color: #000000;">hbmk2</span> -plat=win -comp=bcc -lhbmainwin -lfive32 -lfivehc32 @myprog.lnk<br /><br />myprog.lnk is a <span style="color: #0000ff;">text</span> file which list your prg, example:<br /><br />-- myprog.lnk --<br />program1.prg<br />propram2.prg<br />promram3.prg<br />-- myprog.lnk -- </div>[/code:2u419g74]
There are still many good features.
for more info: [url:2u419g74]https://github.com/harbour/core/blob/master/utils/hbmk2/doc/hbmk2.en.md[/url:2u419g74]
Hope that helps.
|
Building Harbour 3.4 for BCC outside MSYS
|
Thanks, i will try!
|
Building Harbour 3.4 for BCC outside MSYS
|
8,72 MB with BCC
8,78 MB with MSC
|
Building Harbour 3.4 for BCC outside MSYS
|
Now i have tested hbmk2 but is showing the following error:
[b:149w4ti8]Error: 'C:\FWH\LIB\FIVEH32.LIB' enthlt einen ung ltigen OMF-Record, Typ 0x21 (mglicherweise COFF)
[/b:149w4ti8] Is any solution?
The complete trace-output:
[quote:149w4ti8]C:\fwh\samples>c:\\harbour\bin\hbmk2 -plat=win -comp=bcc -trace -lhbmainwin -Lc:\\fwh\lib -lfiveh32 -lfivehc32 -incpath=c:\\fwh\include testend.prg
hbmk2: Harbour compiler command (embedded):
(c:\harbour\bin\harbour.exe) -n2 testend.prg -oC:\Users\BYTE-ONE\AppData\Local\Temp\hbmk_jeve4z.dir\ -iC:\Program Files\Embarcadero\Studio\18.0\Include -iC:\Program Files\Embarcadero\Studio\18.0\Include\dinkumware -iC:\Program Files\Embarcadero\Studio\18.0\Include\windows\crtl -iC:\Program Files\Embarcadero\Studio\18.0\Include\windows\rtl -iC:\Program Files\Embarcadero\Studio\18.0\Include\windows\sdk -ic:\harbour\include -ic:\fwh\include -undef:.ARCH. -D__PLATFORM__WINDOWS -D__LITTLE_ENDIAN__ -D__ARCH32BIT__
Harbour 3.2.0dev (r1703231115)
Copyright (c) 1999-2016, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m -->
Compiling 'testend.prg'...
Lines 4736, Functions/Procedures 1
Generating C source output to 'C:\Users\BYTE-ONE\AppData\Local\Temp\hbmk_jeve4z.dir\testend.c'... Done.
hbmk2: C/C++ compiler command:
bcc32.exe -c -q -CP437 -d -O2 -OS -Ov -Oc -Oi -6 -tWM -w -Q -w-sig- -n"C:\Users\BYTE-ONE\AppData\Local\Temp\hbmk_jeve4z.dir" -I"C:\Program Files\Embarcadero\Studio\18.0\Include" -I"C:\Program Files\Embarcadero\Studio\18.0\Include\dinkumware" -I"C:\Program Files\Embarcadero\Studio\18.0\Include\windows\crtl" -I"C:\Program Files\Embarcadero\Studio\18.0\Include\windows\rtl" -I"C:\Program Files\Embarcadero\Studio\18.0\Include\windows\sdk" -Ic:\harbour\include -Ic:\fwh\include "C:\Users\BYTE-ONE\AppData\Local\Temp\hbmk_jeve4z.dir\testend.c"
C:\Users\BYTE-ONE\AppData\Local\Temp\hbmk_jeve4z.dir\testend.c:
hbmk2: Linker command:
ilink32.exe @C:\Users\BYTE-ONE\AppData\Local\Temp\abb81w.lnk
hbmk2: Linker script:
-Gn -Tpe -L"C:\Program Files\Embarcadero\Studio\18.0\Lib";"C:\Program Files\Embarcadero\Studio\18.0\Lib\PSDK";c:\harbour\lib;c:\\fwh\lib -ap c0x32.obj "C:\Users\BYTE-ONE\AppData\Local\Temp\hbmk_jeve4z.dir\testend.obj", testend.exe, nul, hbmainwin.lib fiveh32.lib fivehc32.lib hbextern.lib hbdebug.lib hbvm.lib hbrtl.lib hblang.lib hbcpage.lib gtcgi.lib gtpca.lib gtstd.lib gtwin.lib gtwvt.lib gtgui.lib hbrdd.lib hbuddall.lib hbusrrdd.lib rddntx.lib rddcdx.lib rddnsx.lib rddfpt.lib hbrdd.lib hbhsx.lib hbsix.lib hbmacro.lib hbcplr.lib hbpp.lib hbcommon.lib kernel32.lib user32.lib gdi32.lib advapi32.lib ws2_32.lib iphlpapi.lib winspool.lib comctl32.lib comdlg32.lib shell32.lib uuid.lib ole32.lib oleaut32.lib mpr.lib winmm.lib mapi32.lib imm32.lib msimg32.lib wininet.lib hbpcre.lib hbzlib.lib cw32mt.lib import32.lib, ,
Turbo Incremental Link 6.75 Copyright (c) 1997-2016 Embarcadero Technologies, Inc.
Error: 'C:\FWH\LIB\FIVEH32.LIB' enthlt einen ung ltigen OMF-Record, Typ 0x21 (mglicherweise COFF)
hbmk2: Error: Running linker. 2
ilink32.exe @C:\Users\BYTE-ONE\AppData\Local\Temp\abb81w.lnk[/quote:149w4ti8]
|
Building Harbour 3.4 for BCC outside MSYS
|
Andi
I have downloaded xHarbour MSVC 2015 from Mel's site ... I have attempted to modify BuildxM and when I try to compile Tutor01.prg I get the errors below. I would appreciate any help.
Thanks
Rick Lipkin
[code=fw:3dfag4lg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ECHO OFF<br />CLS<br />ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">17.07</span> <span style="color: #000000;">(</span>MSVC++<span style="color: #000000;">)</span> July <span style="color: #000000;">2017</span> xHarbour development <span style="color: #0000ff;">power</span> ³Ü<br />ECHO ³ <span style="color: #000000;">(</span>c<span style="color: #000000;">)</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 />ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ<br />ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<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=c:\xharbourM<br />set vcdir=c:\msvc17<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>> 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%\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 />rem c:\Fwh1707\lib\Fivehmx.lib c:\Fwh1707\lib\FiveHCM.lib >> msvc.tmp<br />echo c:\Fwh1707\lib\Fivehc32.lib c:\Fwh1707\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 />echo %hdir%\lib\png.lib >> msvc.tmp<br /><br />rem ... can not find this in xHarbourM<br />rem echo %hdir%\lib\hbzlib.lib >> msvc.tmp<br /><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 />rem echo %vcdir%\lib\kernel32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\user32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\gdi32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\winspool.lib >> msvc.tmp<br />rem echo %vcdir%\lib\comctl32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\comdlg32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\advapi32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\shell32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\ole32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\oleaut32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\uuid.lib >> msvc.tmp<br />rem echo %vcdir%\lib\odbc32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\odbccp32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\mpr.lib >> msvc.tmp<br />rem echo %vcdir%\lib\msimg32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\oledlg.lib >> msvc.tmp<br />rem echo %vcdir%\lib\psapi.lib >> msvc.tmp<br />rem echo %vcdir%\lib\version.lib >> msvc.tmp<br /><br />rem microsoft C++ libs<br /><br />rem echo %vcdir%\lib\imm32.lib >> msvc.tmp<br />echo %vcdir%\lib\msimg32.lib >> msvc.tmp <br />rem echo %vcdir%\lib\gdiplus.lib >> msvc.tmp <br />echo %vcdir%\lib\uuid.lib >> msvc.tmp <br />echo %vcdir%\lib\psapi.lib >> msvc.tmp <br />rem echo %vcdir%\lib\msimg32.lib >> msvc.tmp <br />echo %vcdir%\lib\iphlpapi.lib >> msvc.tmp<br />echo %vcdir%\lib\version.lib >> msvc.tmp<br />echo %vcdir%\lib\shell32.lib >> msvc.tmp<br />echo %vcdir%\lib\kernel32.lib >> msvc.tmp<br />echo %vcdir%\lib\user32.lib >> msvc.tmp<br />echo %vcdir%\lib\advapi32.lib >> msvc.tmp<br />echo %vcdir%\lib\gdi32.lib >> msvc.tmp<br />echo %vcdir%\lib\winspool.lib >> msvc.tmp<br />echo %vcdir%\lib\ole32.lib >> msvc.tmp<br />echo %vcdir%\lib\oleaut32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\ws2_32.lib >> msvc.tmp<br />echo %vcdir%\lib\mpr.lib >> msvc.tmp<br />rem echo %vcdir%\lib\winmm.lib >> msvc.tmp<br />echo %vcdir%\lib\comctl32.lib >> msvc.tmp<br />echo %vcdir%\lib\comdlg32.lib >> msvc.tmp<br /><br />echo %vcdir%\lib\odbc32.lib >> msvc.tmp<br />echo %vcdir%\lib\odbccp32.lib >> msvc.tmp<br />echo %vcdir%\lib\oledlg.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> /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;">[</span>Program<span style="color: #000000;">]</span> <span style="color: #000000;">{</span>-- No especifiques la extensión PRG<br />ECHO <span style="color: #000000;">{</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:3dfag4lg]
Compile errors
[code=fw:3dfag4lg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />³ FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">17.07</span> <span style="color: #000000;">(</span>MSVC++<span style="color: #000000;">)</span> July <span style="color: #000000;">2017</span> xHarbour development <span style="color: #0000ff;">power</span> ³Ü<br />³ <span style="color: #000000;">(</span>c<span style="color: #000000;">)</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 />Compiling...<br />xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">(</span>SimpLex<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>Build <span style="color: #000000;">20170902</span><span style="color: #000000;">)</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 /><span style="color: #000000;">2000</span><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;">(</span>R<span style="color: #000000;">)</span> Windows <span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> <span style="color: #0000ff;">Resource</span> Compiler Version <span style="color: #000000;">10.0</span><span style="color: #000000;">.10011</span><span style="color: #000000;">.16384</span><br /><br />Copyright <span style="color: #000000;">(</span>C<span style="color: #000000;">)</span> Microsoft Corporation. All rights reserved.<br /><br /><br />rtl.lib<span style="color: #000000;">(</span>math.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: __matherr already defined in LIBCMT.lib<span style="color: #000000;">(</span>matherr.obj<span style="color: #000000;">)</span>; second definition ignored<br /> Creating <span style="color: #0000ff;">library</span> tutor01.lib and object tutor01.<span style="color: #0000ff;">exp</span><br />LINK : <span style="color: #000000;">warning</span> LNK4098: <span style="color: #000000;">defaultlib</span> <span style="color: #ff0000;">'MSVCRT'</span> conflicts with use <span style="color: #0000ff;">of</span> other libs; use /NODEFAULTLIB:<span style="color: #0000ff;">library</span><br />tutor01.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_TACTIVEX<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_parvni referenced in <span style="color: #00C800;">function</span> _HB_FUN_DRAWTEXTW<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_parvnl referenced in <span style="color: #00C800;">function</span> _HB_FUN_EXTTEXTOUTW<br />Fivehc32.lib<span style="color: #000000;">(</span>THEMES.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_parvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>HARBOURC.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_parvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_storvc referenced in <span style="color: #00C800;">function</span> _HB_FUN_GETCLASSINFOW<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_storvni referenced in <span style="color: #00C800;">function</span> _HB_FUN_GETCLASSINFOW<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_storvnl referenced in <span style="color: #00C800;">function</span> _HB_FUN_GETCLASSINFOW<br />Fivehc32.lib<span style="color: #000000;">(</span>THEMES.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_storvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>RIBBON.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_storvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>DIB.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _RegisterResource referenced in <span style="color: #00C800;">function</span> _CreateDIBPalette<br />Fivehc32.lib<span style="color: #000000;">(</span>RIBBON.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _RegisterResource<br />MSVCRT.lib<span style="color: #000000;">(</span>_chandler4gs_.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol __except_handler4_common referenced in <span style="color: #00C800;">function</span> __except_handler4<br />tutor01.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">8</span> unresolved externals<br />* There are errors<br /> </div>[/code:3dfag4lg]
|
Building Harbour 3.4 for BCC outside MSYS
|
[quote="byte-one":23sxi7rq]Now i have tested hbmk2 but is showing the following error:
[b:23sxi7rq]Error: 'C:\FWH\LIB\FIVEH32.LIB' enthlt einen ung ltigen OMF-Record, Typ 0x21 (mglicherweise COFF)
[/b:23sxi7rq] Is any solution?[/quote:23sxi7rq]
Hi Günther,
You mixed up MSVC libraries with BCC ones:
[code=fw:23sxi7rq]<div class="fw" id="{CB}" style="font-family: monospace;">Libraries description<br />=====================<br /><br />FWH - FiveWin <span style="color: #00C800;">for</span> Harbour<br /><br /> * Borland BCC <span style="color: #000000;">5.82</span> version: <span style="color: #000000;">fiveh</span>.lib, fivehc.lib<br /> <br /> * Microsoft Visual C++ version: <span style="color: #000000;">fivehm</span>.lib, fivehcm.lib<br /><br /> * Libraries FiveH32.lib and FiveHC32.lib are <span style="color: #0000ff;">to</span> be used with Microsoft C++ <span style="color: #000000;">2010</span> <span style="color: #000000;">(</span>Express, Visual<span style="color: #000000;">)</span>.<br /> FiveHCM.lib and FiveHMX.lib are <span style="color: #0000ff;">to</span> be used with xHarbour commercial<br /><br /> * MinGW gcc: <span style="color: #000000;">fivehg</span>.lib, fivehgc.lib<br /><br />FWHX - FiveWin <span style="color: #00C800;">for</span> xHarbour<br /><br /> * Borland BCC <span style="color: #000000;">5.82</span> version: <span style="color: #000000;">fivehx</span>.lib, fivehc.lib<br /><br /> * Microsoft Visual C++ version: <span style="color: #000000;">fivehmx</span>.lib, fivehcm.lib</div>[/code:23sxi7rq]
You must use fiveh.lib instead of fiveh32.lib
|
Building Harbour 3.4 for BCC outside MSYS
|
[quote="Rick Lipkin":14j1028e]Andi
I have downloaded xHarbour MSVC 2015 from Mel's site ... I have attempted to modify BuildxM and when I try to compile Tutor01.prg I get the errors below. I would appreciate any help.
Thanks
Rick Lipkin
[code=fw:14j1028e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ECHO OFF<br />CLS<br />ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">17.07</span> <span style="color: #000000;">(</span>MSVC++<span style="color: #000000;">)</span> July <span style="color: #000000;">2017</span> xHarbour development <span style="color: #0000ff;">power</span> ³Ü<br />ECHO ³ <span style="color: #000000;">(</span>c<span style="color: #000000;">)</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 />ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ<br />ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<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=c:\xharbourM<br />set vcdir=c:\msvc17<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>> 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%\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 />rem c:\Fwh1707\lib\Fivehmx.lib c:\Fwh1707\lib\FiveHCM.lib >> msvc.tmp<br />echo c:\Fwh1707\lib\Fivehc32.lib c:\Fwh1707\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 />echo %hdir%\lib\png.lib >> msvc.tmp<br /><br />rem ... can not find this in xHarbourM<br />rem echo %hdir%\lib\hbzlib.lib >> msvc.tmp<br /><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 />rem echo %vcdir%\lib\kernel32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\user32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\gdi32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\winspool.lib >> msvc.tmp<br />rem echo %vcdir%\lib\comctl32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\comdlg32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\advapi32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\shell32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\ole32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\oleaut32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\uuid.lib >> msvc.tmp<br />rem echo %vcdir%\lib\odbc32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\odbccp32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\mpr.lib >> msvc.tmp<br />rem echo %vcdir%\lib\msimg32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\oledlg.lib >> msvc.tmp<br />rem echo %vcdir%\lib\psapi.lib >> msvc.tmp<br />rem echo %vcdir%\lib\version.lib >> msvc.tmp<br /><br />rem microsoft C++ libs<br /><br />rem echo %vcdir%\lib\imm32.lib >> msvc.tmp<br />echo %vcdir%\lib\msimg32.lib >> msvc.tmp <br />rem echo %vcdir%\lib\gdiplus.lib >> msvc.tmp <br />echo %vcdir%\lib\uuid.lib >> msvc.tmp <br />echo %vcdir%\lib\psapi.lib >> msvc.tmp <br />rem echo %vcdir%\lib\msimg32.lib >> msvc.tmp <br />echo %vcdir%\lib\iphlpapi.lib >> msvc.tmp<br />echo %vcdir%\lib\version.lib >> msvc.tmp<br />echo %vcdir%\lib\shell32.lib >> msvc.tmp<br />echo %vcdir%\lib\kernel32.lib >> msvc.tmp<br />echo %vcdir%\lib\user32.lib >> msvc.tmp<br />echo %vcdir%\lib\advapi32.lib >> msvc.tmp<br />echo %vcdir%\lib\gdi32.lib >> msvc.tmp<br />echo %vcdir%\lib\winspool.lib >> msvc.tmp<br />echo %vcdir%\lib\ole32.lib >> msvc.tmp<br />echo %vcdir%\lib\oleaut32.lib >> msvc.tmp<br />rem echo %vcdir%\lib\ws2_32.lib >> msvc.tmp<br />echo %vcdir%\lib\mpr.lib >> msvc.tmp<br />rem echo %vcdir%\lib\winmm.lib >> msvc.tmp<br />echo %vcdir%\lib\comctl32.lib >> msvc.tmp<br />echo %vcdir%\lib\comdlg32.lib >> msvc.tmp<br /><br />echo %vcdir%\lib\odbc32.lib >> msvc.tmp<br />echo %vcdir%\lib\odbccp32.lib >> msvc.tmp<br />echo %vcdir%\lib\oledlg.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> /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;">[</span>Program<span style="color: #000000;">]</span> <span style="color: #000000;">{</span>-- No especifiques la extensión PRG<br />ECHO <span style="color: #000000;">{</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:14j1028e]
Compile errors
[code=fw:14j1028e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />³ FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">17.07</span> <span style="color: #000000;">(</span>MSVC++<span style="color: #000000;">)</span> July <span style="color: #000000;">2017</span> xHarbour development <span style="color: #0000ff;">power</span> ³Ü<br />³ <span style="color: #000000;">(</span>c<span style="color: #000000;">)</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 />Compiling...<br />xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">(</span>SimpLex<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>Build <span style="color: #000000;">20170902</span><span style="color: #000000;">)</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 /><span style="color: #000000;">2000</span><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;">(</span>R<span style="color: #000000;">)</span> Windows <span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> <span style="color: #0000ff;">Resource</span> Compiler Version <span style="color: #000000;">10.0</span><span style="color: #000000;">.10011</span><span style="color: #000000;">.16384</span><br /><br />Copyright <span style="color: #000000;">(</span>C<span style="color: #000000;">)</span> Microsoft Corporation. All rights reserved.<br /><br /><br />rtl.lib<span style="color: #000000;">(</span>math.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: __matherr already defined in LIBCMT.lib<span style="color: #000000;">(</span>matherr.obj<span style="color: #000000;">)</span>; second definition ignored<br /> Creating <span style="color: #0000ff;">library</span> tutor01.lib and object tutor01.<span style="color: #0000ff;">exp</span><br />LINK : <span style="color: #000000;">warning</span> LNK4098: <span style="color: #000000;">defaultlib</span> <span style="color: #ff0000;">'MSVCRT'</span> conflicts with use <span style="color: #0000ff;">of</span> other libs; use /NODEFAULTLIB:<span style="color: #0000ff;">library</span><br />tutor01.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_TACTIVEX<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_parvni referenced in <span style="color: #00C800;">function</span> _HB_FUN_DRAWTEXTW<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_parvnl referenced in <span style="color: #00C800;">function</span> _HB_FUN_EXTTEXTOUTW<br />Fivehc32.lib<span style="color: #000000;">(</span>THEMES.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_parvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>HARBOURC.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_parvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_storvc referenced in <span style="color: #00C800;">function</span> _HB_FUN_GETCLASSINFOW<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_storvni referenced in <span style="color: #00C800;">function</span> _HB_FUN_GETCLASSINFOW<br />Fivehc32.lib<span style="color: #000000;">(</span>UNICODE.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_storvnl referenced in <span style="color: #00C800;">function</span> _HB_FUN_GETCLASSINFOW<br />Fivehc32.lib<span style="color: #000000;">(</span>THEMES.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_storvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>RIBBON.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _hb_storvnl<br />Fivehc32.lib<span style="color: #000000;">(</span>DIB.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _RegisterResource referenced in <span style="color: #00C800;">function</span> _CreateDIBPalette<br />Fivehc32.lib<span style="color: #000000;">(</span>RIBBON.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _RegisterResource<br />MSVCRT.lib<span style="color: #000000;">(</span>_chandler4gs_.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol __except_handler4_common referenced in <span style="color: #00C800;">function</span> __except_handler4<br />tutor01.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">8</span> unresolved externals<br />* There are errors<br /> </div>[/code:14j1028e][/quote:14j1028e]
Hi Rick,
I did not see you linked [b:14j1028e]fiveh32.lib[/b:14j1028e].
Make sure you include [b:14j1028e]fiveh32.lib[/b:14j1028e] in the batch file.
[i:14j1028e][b:14j1028e]in case of using xHarbour:
FWHX - FiveWin for xHarbour
* Microsoft Visual C++ version: fivehmx.lib, fivehcm.lib[/i:14j1028e][/b:14j1028e]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.