🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #8489

Re: c / include files

#8489
From: Bart.Vanhauwaert
Date: Thu, 27 Jun 2002 13:08
18 lines
1549 bytes
Klashma <klash@noemail.invalid> wrote:
> Heb 2 globals vars die ik in 2 .c files nodig heb
> deze init ik in een .h file, als ik in beide .c files die .h include en die 
> dan samen link krijg ik altijd error van

Als extern in een .h file declareren en dan echt definieren in 1
van de twee .c files.

> server.o: Definition of symbol `_plHead' (multiply defined)
> player.o: Definition of symbol `_plEnd' (multiply defined)

Ik zou in de global namespace geen identifiers beginnen met een
underscore.

cu bart

-- 
http://www.irule.be/bvh/
Technical Details
Message-ID: <7p2ffa.g7l.ln@ns1.irule.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!mtu.ru!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!skynet.be!skynet.be!louie!not-for-mail
References: <Xns923A912658EDFkeanunoemailcom@195.130.132.65>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,8485061e5167c153
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-06-28 01:26:18 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!mtu.ru!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!skynet.be!skynet.be!louie!not-for-mail
Sender: - <bvh@ns1.irule.be>
From: Bart.Vanhauwaert@nowhere.be
Subject: Re: c / include files
Newsgroups: be.comp.programming
References: <Xns923A912658EDFkeanunoemailcom@195.130.132.65>
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.2.17-21mdksecure (i686))
Date: Thu, 27 Jun 2002 15:08:55 +0200
Message-ID: <7p2ffa.g7l.ln@ns1.irule.be>
Lines: 18
NNTP-Posting-Host: 194.78.202.248
X-Trace: 1025252738 reader1.news.skynet.be 6948 194.78.202.248
X-Complaints-To: abuse@skynet.be