Page 1 of 1

To Antonio: moving to harbour.

PostPosted: Wed Jul 23, 2014 9:38 am
by HunterEC
Antonio:

I'm moving an old, big, text program (over 25,000 lines) from 16bit to 32bit. Reports are almost complete (graphical). The data entry will remain on this iteration, text based. I'm using xHarbour but I'm banging my head against the wall with, which I think are, unexpected behavior / bugs. For example:

Code: Select all  Expand view
FUNCTION InvBalan (cPartNo, nQty)
    #include "Tablefld.ch"   (this file has a statement: FIELD Inv_qty IN Parts)
.
.
    REPLACE Inv_qty WITH Iv_qty + nQty
.
.

RETURN .T.
 


Everything compiles ok (all PRGs), but at runtime I'm getting:
Code: Select all  Expand view

Subsystem Call ....: BASE
System Code .......: 1003
Default Status ....: .F.
Description .......: Variable does not exist
Operation .........: INV_QTY
Arguments .........:
Involved File .....:

xHarbour version...: xHarbour 1.2.3 Intl. (SimpLex) (Build 20131030)
xHarbour built on..: Aug 22 2013 08:16:17
C/C++ compiler.....: Pelles ISO C Compiler 3.0 (32 bit)
Multi Threading....: YES
VM Optimization....: 2
 


Under 16bit this works with no problem at all. Now, the ONLY reason that I use xHarbour is that via the xBuild tool I'm able to put all PRGs (over 40) and compile them as a whole. Some of them share the same procedure / function names which are only relevant to the PRG that they're in (STATICs), so I can't #include them from other PRG.

I need a way to compile this with harbour in a way similar to the old Rmake tool:
Code: Select all  Expand view
Rmake Project /dVAR1 /dVAR2...


Being honest with you, don't have a clue on how to make this. I have to finish this project in less than a month.

Re: To Antonio: moving to harbour.

PostPosted: Wed Jul 23, 2014 9:44 am
by Antonio Linares
Gustavo,

If you send me your xBuild project file I will build, with pleasure, a really good makefile that you will enjoy to use very much :-)

it will be incredibly easy to use :-)

Re: To Antonio: moving to harbour.

PostPosted: Wed Jul 23, 2014 6:38 pm
by HunterEC
Antonio:

Sent to your email address. Please reply via email since it is company software. Thank you very much !

Re: To Antonio: moving to harbour.

PostPosted: Wed Jul 23, 2014 7:50 pm
by Antonio Linares
ok, got it, will do :-)

Re: To Antonio: moving to harbour.

PostPosted: Wed Jul 23, 2014 10:54 pm
by Antonio Linares
Gustavo,

Already sent to your email.

Now you can drop xBuild and just call go.bat and you will be using a great makefile for your app :-)

As I have not tested it (as I don't have your files here) please run it and let me know if you get any error or something is missing, thanks