🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #474

Re: MS-C 7.00 + Windows problem

#474
From: Denis Beauregard
Date: Mon, 28 Sep 1992 20:58
57 lines
2907 bytes
Problem with PLOCALHEAP.

The only problem with solutions that are proposed is that I do not
generate the label PLOCALHEAP and it appears in no .h file.  I presume
it was generated by the compiler because of some switch set at the bad value.

Anyway, I used some turn-around and could use my previous compiler and
have it working.  BTW, MS-C 7.00 is there 1st version with C++ support,
so I can't use previous versions to debug.  And the debugger of that version
can not work under Windows 3.0.  I don't remember I saw that C 7.00
was not supporting Win 3.0 on advertising... :-(
Anyway, as I said, there is no more problem (I keep the compiler box just
in case), as I won't have to use the MS compiler :-).


In article <1992Sep18.191732.5748@sj.ate.slb.com> poffen@rushmore (Russ Poffenberger) writes:
>ekalenda@netcom.com (Edward J Kalenda) writes:
>: From article <BuqH7u.8I3@ireq.hydro.qc.ca>, by beaurega@ireq.hydro.qc.ca (Denis Beauregard):
>: > 
>: > No idea what switch to change to clear this!  Any idea?
>: > PLOCALHEAD is found in one place in all C700 files : in wnull.
>: 
>: The normal reason for this error is that you have declared it as:
>: 
>: int	PLOCALHEAP;
>: 
>: in all the modules where you use it. What you need to do is declare it
>: that way in one module and in the rest use:
>: 
>: extern int	PLOCALHEAP;
>: 
>
>The easiest way, without adding this line to all your modules, is to have a
>h file that all the maodules include, declare it as "extern" and in one single
>module (could be a module JUST for global variables) actually declare the
>instance of it. It is OK to have
>
>extern int xyz;
>
>then later in the same module
>
>int xyz;
>
>This also provides some sanity checking, because the compiler will complain
>if the second declaration on 'xyz' is not the same type as the extern.
>
>Russ Poffenberger               DOMAIN: poffen@sj.ate.slb.com
>Schlumberger Technologies ATE   UUCP:   {uunet,decwrl,amdahl}!sjsca4!poffen
>1601 Technology Drive		CIS:	72401,276
>San Jose, Ca. 95110             Voice: (408)437-5254  FAX: (408)437-5246


-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
J   __>  Un Quebec renouvele dans une Amerique renovee
\_.-===                                                  Opinions ? Et pis non !
Technical Details
Message-ID: <BvB3LA.3wL@ireq.hydro.qc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
References: <d32nvcm.ekalenda@netcom.com> <1992Sep18.191732.5748@sj.ate.slb.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Newsgroups: comp.os.ms-windows.programmer.tools
Subject: Re: MS-C 7.00 + Windows problem
Message-ID: <BvB3LA.3wL@ireq.hydro.qc.ca>
Date: 28 Sep 92 20:58:22 GMT
References: <d32nvcm.ekalenda@netcom.com> <1992Sep18.191732.5748@sj.ate.slb.com>
Sender: news@ireq.hydro.qc.ca (Netnews Admin)
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
Lines: 57