LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-06-2008, 12:13 PM   #1
asif.kalim
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Exclamation linker issue - undefined reference error


hi,
i am trying to build a software by using a cross tool chain, and at the end of the build at linking stage, i get the following errors..

===========================================================================
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__towupper_l'
-do- `__strtold_l'
-do- `__strftime_l'
and so on ...
===========================================================================

and when i checked the nm for libstdc++.so, it has these symbols with U type(means undefined). How can this problem be fixed. Can i refer this library to any other library that has these symbols. if so how ???

thanks in advance,
asif
 
Old 02-09-2008, 11:50 AM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Do you link with g++, gcc, or ld? You need to link with g++ if it's a C++ library.
ta0kira
 
Old 02-09-2008, 12:49 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Also, uClibc usually doesn’t have so many extra symbols (e.g., the wide character string functions, etc.) unless you enable locales.
 
Old 04-19-2008, 05:18 AM   #4
pp-zz
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
Re

i have the same question.
how can i details solven this question?
thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference error jacques83 Programming 20 04-11-2013 07:23 AM
"undefined reference"linker error for static field w/ C++ astorm Programming 5 08-27-2008 03:00 AM
undefined reference to error in C++ knobby67 Programming 3 01-19-2008 10:34 PM
undefined reference error bahadur Programming 5 07-25-2006 09:18 PM
Undefined Reference Linker Problem DWo Programming 1 03-11-2006 04:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration