Include .OBJ & .ASM files in Program

173 views
Skip to first unread message

Cotswold GB

unread,
May 28, 2025, 8:25:17 AMMay 28
to Harbour Users
Hello &All
I have a .OBJ file and  .ASM file that I need access to in a program. 
How could I include them in either the .hpb or .prg when compiling the Harbour .EXE?

They were written for Clipper 5.2 but presume they will be Ok in Harbour.



HBQuerier

unread,
May 28, 2025, 1:28:04 PMMay 28
to Harbour Users
Definitely, the .OBJ won't be linkable into Harbour.  Clipper 5.2 was 16-bit, Harbour is 32 & 64.

Most likely, the .ASM will need to be modified, then compiled into a 32-bit .OBJ, then linked into the Harbour application.

Whenever I faced this problem in the past, I tried to rewrite the functionality of the .ASM or .C module into Harbour, even if there might be a performance difference.

Cotswold GB

unread,
Jun 1, 2025, 9:48:10 AMJun 1
to Harbour Users
I did wonder if it would be a lost cause. 
Following your help I've sorted a totally different way to do it without any externals.
Many thanks.

HBQuerier

unread,
Jun 1, 2025, 11:02:57 AMJun 1
to Harbour Users
Anytime, CGB.
Reply all
Reply to author
Forward
0 new messages