Re: Compiling FreeCom

[email protected]
Newsgroups gmane.os.freedos.devel
Message-ID <[email protected]>
On Fri, 25 Oct 2002, Colin Alston wrote:

Hello,

> Well.. then I take it FreeCOM have not provided a precompiled SUPPL v2.7 ?
> Does that mean that the SUPPL they say you to use is infact wrong?

?? If you take the pre-compiled library from sf.net, it is SUPPL v2.7.
However, several people pointed out to copy dfn.h into TC's INCLUDE
directory or FreeCOM's one, so maybe there is some left-over from an elder
version.

> Which brings me back to my origional problem. Its usualy a good idea to
> include the stuff that something needs in order to compile?

To repeat myself:
SUPPL is a library and not a part of FreeCOM, therefore it is shipped as
libraries are shipped usually, it is updated asynchroneously of FreeCOM
and used in other projects as well.
You also do not include the header files of the C library nor would you of
CATS or Allegro or whatever library you used in the past.

BTW: To ship a pre-compiled variant of SUPPL along with the FreeCOM
package was dropped at some time ago because of complaints about wasted
bandwidth. Therefore the separate drop-in package was created.

> > |        D:\dnix\tcc\BIN\TCC +TCCDOS.CFG -c compfile.c ctxt_inf.c
> ctxt_mk.c
> > | ctxt_
> > | mkn.c ctxt_pop.c ctxt_psh.c ctxt_rnu.c ctxt_set.c
> > | Turbo C++  Version 1.01 Copyright (c) 1990 Borland International
> > | compfile.c:
> > | Warning compfile.c 56: Call to function 'dfnfilename' with no prototype
> in
> > | funct
> > | ion comPathFile

This warning tells me the following:
a) TC found a <dfn.h>, because in compfile.c this file is included, but no
warning is displayed.
b) <dfn.h> does not prototyped dfnfilename(). (The actual warning.)
c) DFN.H included in SUPPL.ZIP located at sf.net includes the line:

char *dfnfilename(const char * const fnam);

hence, this is the prototype of the function mentioned in the warning.

Ergo, my conclusion:

> > You are still not using SUPPL v2.7, yet.

Or:
TC does not use the DFN.H of the SUPPL.ZIP you've downloaded.

Bye,

-- 

Steffen Kaiser

The current maintainer of [email protected]
http://freedos.sourceforge.net/freecom/FreeCOM.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.