From: "Lars A. Christensen" Newsgroups: comp.os.msdos.djgpp Subject: Re: C & C++ mixed? Date: Mon, 15 Dec 1997 08:38:43 +0100 Organization: Danish Geotechnical Institute Lines: 20 Message-ID: <3494DE83.6CE9@geoteknisk.dk> References: <349215bb DOT 9779905 AT news DOT primenet DOT com> Reply-To: Lars DOT Christensen AT geoteknisk DOT dk NNTP-Posting-Host: gateway.geoteknisk.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Mike McLean wrote: > > I'm using DJGPP 2.01 with RHIDE 1.4. I have a problem when compiling > some c files with a .cpp file. They all compile fine, but when it > gets to linking it says in a c file that it can't find the reference > to a function in the .cpp file. I am also using allegro 3.0 beta > (need to get full release) > > If needed I will post the code I am using. Take a look at http://www.cerfnet.com/~mpcline/C++-FAQs-Lite/mixing-c-and-cpp.html especialy http://www.cerfnet.com/~mpcline/C++-FAQs-Lite/mixing-c-and-cpp.html#[29.6] you will find the answer there. -- Lars A. Christensen , http://www.geocities.com/SiliconValley/Vista/3653/