| delorie.com/archives/browse.cgi | search |
| From: | Tom Hines <tom_hines AT my-deja DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: link error: multiple definition of `__register_frame_info' |
| Date: | Thu, 24 Feb 2000 17:20:05 GMT |
| Organization: | Deja.com - Before you buy. |
| Lines: | 31 |
| Message-ID: | <893p7v$80$1@nnrp1.deja.com> |
| References: | <893g1u$ot2$1 AT nnrp1 DOT deja DOT com> |
| NNTP-Posting-Host: | 207.91.82.137 |
| X-Article-Creation-Date: | Thu Feb 24 17:20:05 2000 GMT |
| X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) |
| X-Http-Proxy: | 1.1 x32.deja.com:80 (Squid/1.1.22) for client 207.91.82.137 |
| X-MyDeja-Info: | XMYDJUIDtom_hines |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
In article <893g1u$ot2$1 AT nnrp1 DOT deja DOT com>,
Tom Hines <tom_hines AT my-deja DOT com> wrote:
> I'm trying to build DOC++ in NT4. Compiled with
>
> .cpp.o:
> gcc -DUNIX -DNDEBUG -g -c $*.cpp
>
> Linked with:
>
> gcc $(OBJ) -o docxx -lstdcxx -lc
>
> I get the following error:
>
> d:/djgpp2/lib/gcc-lib/djgpp/2.952/libgcc.a(frame.o): In function
> `__register_frame_info':
> frame.c:627: multiple definition of `__register_frame_info'
> d:/djgpp2/lib/libc.a(rfinfo.o)(.text+0x0):rfinfo.c: first defined
here
> collect2: ld returned 1 exit status
> make.exe: *** [dos] Error 1
Aha! Changing to link line to:
gxx $(LDFLAGS) $(OBJ) -s -o docxx
did the trick. I guess I was linking a library twice.
Sent via Deja.com http://www.deja.com/
Before you buy.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |