- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everbody,
i tried to add an Library to my Project. But i doesnt works... But why ? What i do : I Add the Libray to the Files. Then i open the Properties in the Project goto "C/C++ - Build" the to the "Linker/Genreal" and Add my Library. Now Compiling -> Works The Linking -> Not Work.:mad: The Linker says Linking Test.elf... /cygdrive/c/altera/72/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: cannot find -lC:/NIOS2/Test/workspace/Test/lib/lib.a collect2: ld returned 1 exit status make: *** [Test.elf] Error 1 Build completed in 216.674 seconds I hope somebody can help me.... Thanks everbody. TobiasLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Within your application build properties, you can add the linker data which includes the name of the library and the path.
Hope that will help...- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The library name should be just the name without any extension.
The path should be the location where the library.a is located.
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