Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clipper to XHarbour 1

Status
Not open for further replies.

jfarhat

Programmer
May 20, 2005
2
EG
Greetings,

I have an application written in CA 5.2 and wish to compile it under XHarbour. I installed and configured XHarbour and BCC55 successfully.

Can anyone please tell me how to compile the multiple prg files with bld? Do I need to move all the global variables and code which are not wrapped in their own functions into the MAIN function?

Thank you very much for your help.
 
Have a look at HBMake (it comes with xHarbour)
When running it initially like "hbmake myproj.hb -ex" you will interactively create make-like script that can be run with "hbmake myproj.hb" to check the sources and execute all compile/link commands to get your app on the road.
For more info checkout nntp://news.xharbour.org using a newsreader, it has more info you can digest in a month ;-)

HTH
TonHu
 
Thank you TonHu for your great response :)

I used hbmake.exe to compile the code and it went well. Now the problem when it links it gives me a copule of errors:

Error: Unresolved external '_HB_FUN_DBCREATEIND' reerenced from 'c:\.....'

Do you have an idea how to resolve it?

Thank you very much for your help
 
I assume you probably used the Clipper 10-character cut-off version of functionnames (and var-names for that matter), but that doesn't work (finally!) with xHarbour. (This is different from the 4-character abreviated command names, which is intentional/historical).
All characters of a var/function-name are used by xHarbour (it can be re-compiled to behave like Clipper, but I recommend correcting your code). If you need to know the correct functionname, then strip off the '_HB_FUN_' prefix, added by the xHarbour compiler, and find the function using either the Norton Guides docs of Clipper, or the xHdn DBCREATEIND appears to be DBCREATEINDEX, as I suspected ;-), and it is part of the RDD subsystem.

HTH
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top