Harbour v3, where are my object files?

199 views
Skip to first unread message

Fred Philip

unread,
Aug 19, 2014, 3:51:39 PM8/19/14
to harbou...@googlegroups.com
Hi folks,
 
a question that might have been asked in the past and possibly already answered, but I dare to ask...
When compiling my PRG's, where are my object files?
 
We have the policy that PRG's and OBJ's are archived in VSS/SVN so that they can be used for future linking.
However it seems to me that these files are created (temporarily) and then purged before the end of the make process with hbmk2.
 
Is there a switch in harbour/hbmk2 that does not erase OBJ's?
 
Yes I know you may answer "you don't need the OBJ's" and I will answer: Yes I do.
 
Any feedback much appreciated
 
TIA
Fred (a Harbour newbee)

Juan Francolino

unread,
Aug 19, 2014, 4:42:41 PM8/19/14
to harbou...@googlegroups.com
Hi,

You must use the -inc parameter.  In your hbp folder, there are hidden folder .hbmk with .o files.

Regards,

Juan
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pritpal Bedi

unread,
Aug 19, 2014, 4:49:21 PM8/19/14
to harbou...@googlegroups.com
Fred

Add this line in your project file .hbp:


-oC:\MyCompilationFolder\MyThisProjectFolder


Then you can always inspect the above folder where all the 
resulting files are deposited including the .o | .obj files.


Pritpal Bedi
a student of software analysis & concepts

Fred Philip

unread,
Aug 21, 2014, 5:36:36 PM8/21/14
to harbou...@googlegroups.com
Juan,

I read (from the hbmk2 help) that "-inc" is the directive for incremental build (???)
I'm confused a little bit.

Cheers
Fred


Fred Philip

unread,
Aug 21, 2014, 5:39:35 PM8/21/14
to harbou...@googlegroups.com
Pritbal,

Are you sure that this option works?

I redirected the output to a customized folder but neither the c code nor the object files are in this folder.
I'm puzzled.

Fred

Pritpal Bedi

unread,
Aug 21, 2014, 6:06:56 PM8/21/14
to harbou...@googlegroups.com
Hi


Are you sure that this option works?
 

Since many years. Read HbMk2 documentation.

 
I redirected the output to a customized folder but neither the c code nor the object files are in this folder.
I'm puzzled.


Show your .hbp and also how you call it on command line.


Pritpal Bedi

Juan Francolino

unread,
Aug 21, 2014, 8:17:30 PM8/21/14
to harbou...@googlegroups.com
Hi Fred,

Yes. When use these parameter  .o  files  stored in non temporal folder. 

Regards,

Juan

Klas Engwall

unread,
Aug 22, 2014, 10:50:46 AM8/22/14
to harbou...@googlegroups.com
Hi Fred,

> I redirected the output to a customized folder but neither the c code
> nor the object files are in this folder.
> I'm puzzled.

I believe these are the hbmk2 options your are looking for:

-o<outname> output file name
This is the name of the binary you are building

-workdir=<dir> working directory
(default: .hbmk/plat/comp in incremental mode, OS
temp directory otherwise)
Make sure that the directory you specify already exists. This is where
the .o and .c files will be put if you build incrementally.

-inc[-] enable/disable incremental build mode (default:
disabled)
The second dash ( -inc- ) means do *not* build incrementally, and erase
existing .o and .c files. This is useful for temporarily turning off
incremental build from the commandline when the .hbp file says -inc for
normal builds.

To get the help topics listed in a file, do
hbmk2 --help > hbmk2help.txt
or
hbmk2 --longhelp > hbmk2longhelp.txt

Regards,
Klas

carloskds

unread,
Aug 22, 2014, 2:03:09 PM8/22/14
to harbou...@googlegroups.com
.hbmk2 (hidden folder)

please note the dot at begin (how in linux)

you can cd .\hbmk2 an list your .c and obj files.

salu2
carlos vargas

Fred Philip

unread,
Sep 1, 2014, 12:06:14 PM9/1/14
to harbou...@googlegroups.com
Hi Guys,

The problem is solved.
I created a directive in my .hbp file for the output of .c and .obj files (-workdir=..\tmp)
and changed the entry in the .hbp file to <-inc> (not -inc+)

and voila, the files are in the folder and not erased at the end of compile/link cycle.

Thanks to all who posted here.
Cheers, Fred


On Tuesday, August 19, 2014 3:51:39 PM UTC-4, Fred Philip wrote:
Reply all
Reply to author
Forward
0 new messages