PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > ubuntu : __errno_location undefined
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ubuntu : __errno_location undefined

Réponse
 
LinkBack Outils de la discussion
Vieux 09/02/2008, 07h33   #1
czp.opensource@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut ubuntu : __errno_location undefined

hi all:
my code is work well on fedora 7 or fedora 8. now i installed
ubuntu, my code can't compile crrectly.
error is __errno_location function is not defined: undefined
reference to `__errno_location()'
but the function is exectly defined in libpthread.a.
nm /usr/lib/libpthread.a | grep errno
U __errno_location
errno.o:
00000051 T __errno_location
00000000 T __h_errno_location
U __errno_location
U __errno_location

why? please!

Allen
  Réponse avec citation
Vieux 09/02/2008, 07h38   #2
Ian Collins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ubuntu : __errno_location undefined

czp.opensource@gmail.com wrote:
>
> why? please!
>

Try a Linux group, they'll know.

--
Ian Collins.
  Réponse avec citation
Vieux 09/02/2008, 10h08   #3
Chris Gordon-Smith
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ubuntu : __errno_location undefined

czp.opensource@gmail.com wrote:

> hi all:
> my code is work well on fedora 7 or fedora 8. now i installed
> ubuntu, my code can't compile crrectly.
> error is __errno_location function is not defined: undefined
> reference to `__errno_location()'
> but the function is exectly defined in libpthread.a.
> nm /usr/lib/libpthread.a | grep errno
> U __errno_location
> errno.o:
> 00000051 T __errno_location
> 00000000 T __h_errno_location
> U __errno_location
> U __errno_location
>
> why? please!
>
> Allen

Sounds like a linking problem. Is it something to do with the way you have
specified libraries to be used. Often if you specify library A first and B
later in the list, then if something in B calls something in A, the linker
will not find it. One way to handle this is to repeat the list of
libraries, so that A now appears after B, as well as before it.

Chris Gordon-Smith
www.simsoup.info
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h35.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11233 seconds with 11 queries