delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Message-ID: | <00ea01c3a487$34680b80$5929120b@T21jSANCHEZ2> |
From: | "J. L." <jlsgarrido AT yahoo DOT com> |
To: | <djgpp AT delorie DOT com> |
References: | <9b9ba90f DOT 0311060801 DOT 4993f466 AT posting DOT google DOT com> |
Subject: | Re: linker error: undefined reference to: '___gxx_personality_v0' |
Date: | Thu, 6 Nov 2003 10:58:23 -0600 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 6.00.2800.1158 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1165 |
Reply-To: | djgpp AT delorie DOT com |
Bart de Keijzer <B_A_R_T_K AT hotmail DOT com> tuvo a bien escribir: > Hello, > > I have a problem when I try to compile a C-program, it gives me > the following error: > ---------------- > c:/djgpp/tmp/ccP9aOYb.o(.eh_frame+0x11):nio1.C: undefined > reference to `___gxx_personality_v0' > collect2: ld returned 1 exit status > ---------------- > > This is the program I want to compile: > > ---------------- > #include <stdio.h> > #include <string.h> > #include <stdlib.h> > > int alfa(const void *e1, const void *e2) > { > return (*(char *)e1-*(char *)e2); > } > > typedef struct > { > char woord[10]; > bool flag[9]; Here is the problem. AFAIK there are not type 'bool' in C. You can include a typedef like typedef unsigned int bool; previous to the typedef of negen_t, or change th line to somelike unsigned int flag[9]; [snip rest] > Thanks! > Bart de Keijzer HTH Jose L. Sanchez Garrido 'I don't know' -Isaac Asimov
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |