Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 17:10:02 -0800 (PST)
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: gnu/13525: gcc fails load against library with both C++ and C modules 
Message-ID:  <200201220110.g0M1A2x75315@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/13525; it has been noted by GNATS.

From: Ian Dowse <iedowse@maths.tcd.ie>
To: Keith Bostic <bostic@sleepycat.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: gnu/13525: gcc fails load against library with both C++ and C modules 
Date: Tue, 22 Jan 2002 01:06:25 +0000

 In message <200201212132.g0LLWwH11686@abyssinian.sleepycat.com>, Keith Bostic w
 rites:
 >Sorry, but I haven't the slightest idea -- it's been 2 1/2 years.
 >There's a test case in the PR, so you should be able to find out.
 
 Thanks for the reply - yes, it seems that the issue is still present.
 The following script reproduces it directly (cc'd to gnats for
 future reference).
 
 Ian
 
 #!/bin/sh
 
 cat > a.c << EOF
 void a(void) {}
 EOF
 
 cat > b.cc << EOF
 #include <iostream.h>
 extern "C" { void a(void); } 
 class b { public: void A(); };
 void b::A() { a(); cout << "a"; }
 EOF
 
 cat > c.c << EOF
 extern void a(void);
 int main() { a(); return 0; }
 EOF
 
 gcc -Wall -c -fpic a.c
 c++ -Wall -c -fpic b.cc
 gcc -shared -o libab.so a.o b.o
 gcc -Wall -o c c.c ./libab.so
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201220110.g0M1A2x75315>