- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi hippo.
in staging_dir , It has nios2-linux-gcc and nios2-linux-uclibc-gcc,Why? Could you tell me which is the default apps's library?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by zzh@May 25 2006, 11:08 AM hi hippo.
in staging_dir , it has nios2-linux-gcc and nios2-linux-uclibc-gcc,why?
could you tell me which is the default apps's library?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15563)
--- quote end ---
--- Quote End --- nios2-linux-gcc is a symbolic link (similar to short cut in Windows) , pointed to the real nios2-linux-uclibc-gcc. The default apps library is uClibc's libc, so you don't need -lc . If you use math, you need -lm . If you use pthread, you need -lpthread . If you use crypt, you need -lcrypt . .....etc. You will need those include headers, too. The order of librarys is important, the linker will search only one pass by default. The default include dir search path is staging_dir/include . The default library search path is staging_dir/lib .

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page