Alaska Software Inc. - Object Files
Username: Password:
AuthorTopic: Object Files
Andreas Gehrs-Pahl Object Files
on Wed, 24 Dec 2003 06:43:20 -0500
Specifying a different "OBJ" dir in the project file, using for example: 

	OBJ_DIR = "X:\YYYY\ZZZZ\" 

will result in a strange change of the project file if VX is re-building the 
project file. After the rebuilt, all "*.OBJ" files are prefixed in the 
AUTODEPEND section with the value that is listed after OBJ_DIR. In the above 
example, all obj files would be listed like this:

	"X:\YYYY\ZZZZ\"FileName1.obj
	"X:\YYYY\ZZZZ\"FileName2.obj
	"X:\YYYY\ZZZZ\"FileName3.obj
	"X:\YYYY\ZZZZ\"FileName4.obj

with the quotation marks placed as shown above. But this does not seem to 
have any (negative) influence on the (incremental) compiling!

Removing the quotation marks around the path behind OBJ_DIR will fix this, 
and it also still works for the original Xbase++ 1.82.294 without using 
those quotation marks. Maybe this could be documented more exactly, possibly 
with an example, showing the correct syntax. I believe the quotation marks 
where either necessary in earlier versions, or were documented as such in 
some example, possibly in a news group post -- maybe because of spaces in 
the used (example) path name.

-- Andreas

---                                                                      ---
  Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
  415 Gute Street                     or: Andreas@DDPSoftware.com
  Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
  Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
---                                                                      ---
Andreas Herdt Re: Object Files
on Wed, 24 Dec 2003 12:12:01 +0100
Hi Andreas,

We have to check our docu on this issue.
The Syntax of the xpj file is like this.

[Section]
    Name = Value
    Dependency

The Value is everything form "=" to the end of line.
Thus there is no need for Quotation marks.


Regards


Andreas Herdt


//////////////////////////////////////////////////////////////////
//
// Alaska Research & Development
// Homepage: www.alaska-research.com
// Newsgroup: nntp://news.alaska-Software.net
//
//////////////////////////////////////////////////////////////////

Andreas Gehrs-Pahl wrote:

> Specifying a different "OBJ" dir in the project file, using for example:
> 
> OBJ_DIR = "X:\YYYY\ZZZZ\"
> 
> will result in a strange change of the project file if VX is re-building
> the project file. After the rebuilt, all "*.OBJ" files are prefixed in the
> AUTODEPEND section with the value that is listed after OBJ_DIR. In the
> above example, all obj files would be listed like this:
> 
> "X:\YYYY\ZZZZ\"FileName1.obj
> "X:\YYYY\ZZZZ\"FileName2.obj
> "X:\YYYY\ZZZZ\"FileName3.obj
> "X:\YYYY\ZZZZ\"FileName4.obj
> 
> with the quotation marks placed as shown above. But this does not seem to
> have any (negative) influence on the (incremental) compiling!
> 
> Removing the quotation marks around the path behind OBJ_DIR will fix this,
> and it also still works for the original Xbase++ 1.82.294 without using
> those quotation marks. Maybe this could be documented more exactly,
> possibly with an example, showing the correct syntax. I believe the
> quotation marks where either necessary in earlier versions, or were
> documented as such in some example, possibly in a news group post -- maybe
> because of spaces in the used (example) path name.
> 
> -- Andreas
> 
> ---                                                                     
> ---
>   Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
>   415 Gute Street                     or: Andreas@DDPSoftware.com
>   Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
>   Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
> ---                                                                     
> ---
Andreas Herdt Re: Object Files
on Wed, 24 Dec 2003 12:22:07 +0100
Tiny note:

I could not find that the Value of obj_dir is enclosed
with quotation marks anywhere in our docu. As far as I can
see, pbuild has not been modified for the last couple of
years at this place.

With best regards


Andreas Herdt


//////////////////////////////////////////////////////////////////

 Alaska Research & Development
 Homepage: www.alaska-research.com
 Newsgroup: nntp://news.alaska-Software.net

//////////////////////////////////////////////////////////////////Andreas -- 

Gehrs-Pahl wrote:

> Specifying a different "OBJ" dir in the project file, using for example:
> 
> OBJ_DIR = "X:\YYYY\ZZZZ\"
> 
> will result in a strange change of the project file if VX is re-building
> the project file. After the rebuilt, all "*.OBJ" files are prefixed in the
> AUTODEPEND section with the value that is listed after OBJ_DIR. In the
> above example, all obj files would be listed like this:
> 
> "X:\YYYY\ZZZZ\"FileName1.obj
> "X:\YYYY\ZZZZ\"FileName2.obj
> "X:\YYYY\ZZZZ\"FileName3.obj
> "X:\YYYY\ZZZZ\"FileName4.obj
> 
> with the quotation marks placed as shown above. But this does not seem to
> have any (negative) influence on the (incremental) compiling!
> 
> Removing the quotation marks around the path behind OBJ_DIR will fix this,
> and it also still works for the original Xbase++ 1.82.294 without using
> those quotation marks. Maybe this could be documented more exactly,
> possibly with an example, showing the correct syntax. I believe the
> quotation marks where either necessary in earlier versions, or were
> documented as such in some example, possibly in a news group post -- maybe
> because of spaces in the used (example) path name.
> 
> -- Andreas
> 
> ---                                                                     
> ---
>   Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
>   415 Gute Street                     or: Andreas@DDPSoftware.com
>   Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
>   Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
> ---                                                                     
> ---
Jan EscholtRe: Object Files
on Wed, 24 Dec 2003 13:57:50 +0100
Andreas (both),

I had the same problem. And it was a problem. I do not know where, but it
happend 3 times with me. The name of the object files have been changed to
obj/file1.obj and so on. "Obj" is the folder for my object files.

And that gave a big problem while compiling my project. It gave me hundreds
of <function> or <class> has already been declared.

After deleting the "obj\" manually everything went well, until VX changed it
back again including the obj-path.

Regards,

Jan

"Andreas Gehrs-Pahl" <Andreas@DDPSoftware.com> schrieb im Newsbeitrag
news:1lxn0o3tzvltj.1p601hyqvnavf$.dlg@40tude.net...
> Specifying a different "OBJ" dir in the project file, using for example:
>
> OBJ_DIR = "X:\YYYY\ZZZZ\"
>
> will result in a strange change of the project file if VX is re-building
the
> project file. After the rebuilt, all "*.OBJ" files are prefixed in the
> AUTODEPEND section with the value that is listed after OBJ_DIR. In the
above
> example, all obj files would be listed like this:
>
> "X:\YYYY\ZZZZ\"FileName1.obj
> "X:\YYYY\ZZZZ\"FileName2.obj
> "X:\YYYY\ZZZZ\"FileName3.obj
> "X:\YYYY\ZZZZ\"FileName4.obj
>
> with the quotation marks placed as shown above. But this does not seem to
> have any (negative) influence on the (incremental) compiling!
>
> Removing the quotation marks around the path behind OBJ_DIR will fix this,
> and it also still works for the original Xbase++ 1.82.294 without using
> those quotation marks. Maybe this could be documented more exactly,
possibly
> with an example, showing the correct syntax. I believe the quotation marks
> where either necessary in earlier versions, or were documented as such in
> some example, possibly in a news group post -- maybe because of spaces in
> the used (example) path name.
>
> -- Andreas
>
> ---                                                                      -
--
>   Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
>   415 Gute Street                     or: Andreas@DDPSoftware.com
>   Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
>   Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
> ---                                                                      -
--
Andreas Herdt Re: Object Files
on Wed, 24 Dec 2003 15:08:50 +0100
Ok,

I've got it (finally  )

Following happens:
pbuild support the Obj_dir name value pair. According this value
the compiler is instructed to create the obj file to the directory
mentioned.

Visual Xbase on the other hand tries not to modify the Autodepend
section if necessary because this one is produced by the xbase
compiler that has a high knowledge about the dependencies of a 
module (obj file).

In case a prg is added or removed the project manager modifies
the autodepend section. This is an optimization so that a
dependency rebuild is not recommended after such a modification
of the project (since it is very time consuming)

The bug can be described here as follows:

VX handles the Autodepend section of the project file different
then pbuild.

We have to fix this.

Thank you for your careful investigation in this subject.


Regards


Andreas Herdt


//////////////////////////////////////////////////////////////////
//
// Alaska Research & Development
// Homepage: www.alaska-research.com
// Newsgroup: nntp://news.alaska-Software.net
//
//////////////////////////////////////////////////////////////////