Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-06-2008, 01:13 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 1

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

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/ undefined reference to `__towupper_l'
-do- `__strtold_l'
-do- `__strftime_l'
and so on ...

and when i checked the nm for, 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,
Old 02-09-2008, 12:50 PM   #2
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.
Old 02-09-2008, 01:49 PM   #3
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 76
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, 06:18 AM   #4
LQ Newbie
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0

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


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 08:23 AM
"undefined reference"linker error for static field w/ C++ astorm Programming 5 08-27-2008 04:00 AM
undefined reference to error in C++ knobby67 Programming 3 01-19-2008 11:34 PM
undefined reference error bahadur Programming 5 07-25-2006 10:18 PM
Undefined Reference Linker Problem DWo Programming 1 03-11-2006 05:17 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:12 PM.

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