![]() |
| | #1 |
| Registered User Join Date: Jul 2002
Posts: 913
| howto make a static library? if i have test.c i start with :
i cant find a stdio.a anywhere, how are the standard ones made? |
| mart_man00 is offline | |
| | #2 |
| Registered User Join Date: Jul 2002
Posts: 913
| can i combine libraries together? right now if i have test1.c and test2.c i run Code: gcc -c test1.c ar -cr libtest1.a test1.o ranlib libtest1.a gcc -c test2.c ar -cr libtest2.a test2.o ranlib libtest2.a ld -r -o test.o test1.o test2.o ar -cr libtest.a test.o ranlib libtest.a |
| mart_man00 is offline | |
| | #3 |
| Comment your source code! Join Date: Apr 2002
Posts: 533
| I don't know enough about this to actually help you but its in this book somewhere, I remember skimming over it and noticing a good portion on it. Advanced Linux Programming Sorry if I can't be of more help. And I would like to thank Salem for showing me the link, it has proven useful time and time again. -LC
__________________ Asking the right question is sometimes more important than knowing the answer. Please read the FAQ C Reference Card (A MUST!) Pointers and Memory The Essentials CString lib |
| Lynux-Penguin is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help building/linking to static library | Kernel Sanders | C++ Programming | 19 | 08-17-2008 04:35 PM |
| Howto make own application for remote control handling | s-men | Windows Programming | 16 | 08-16-2008 04:22 PM |
| difference between dynamic link library and static library | studentc | C Programming | 19 | 01-12-2006 11:04 AM |
| Using private class members in static functions | sethjackson | C++ Programming | 2 | 09-23-2005 09:54 AM |
| opengl program as win API menu item | SAMSAM | Game Programming | 1 | 03-03-2003 07:48 PM |