definition of R_problem_buf in S.h (PR#210)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
14 Jun 1999 19:38:19 +0200


Duncan Temple Lang <duncan@rice.research.bell-labs.com> writes:

> I think Thomas is correct and that it is a problem.  I brought it up a
> while back and Peter had some comments.  The problem is when 2 or more
> user-level C source files include S.h. Then while each file has an
> idempotent S.h, when linked together, there is a duplication of
> symbols.  The problem is not within source file but across file.

Yes, exactly. I forgot which comment I had at the time, but...

There are two obvious solutions:
(1) Define it "static" in S.h (hey, what is 4K these days?)
(2) Declare it extern there and define it somewhere else.

Any preferences?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._