Aug 1, 2002 #1 huskers Programmer Jan 29, 2002 75 US Hi, Could anyone tell me how I can make a library in C. I am working on a Unix machine. Any help would be greatly appreciated. Thanks
Hi, Could anyone tell me how I can make a library in C. I am working on a Unix machine. Any help would be greatly appreciated. Thanks
Aug 1, 2002 #2 olded Programmer Oct 27, 1998 1,065 US Huskers: You want to use the ar command, maintain library command. The man pages have a full description but: The following command adds the file source.o to the library testlib.a: ar -r testlib.a source.o where the -r switch says to replace the object if it already exists in the library else add it. Regards, Ed Upvote 0 Downvote
Huskers: You want to use the ar command, maintain library command. The man pages have a full description but: The following command adds the file source.o to the library testlib.a: ar -r testlib.a source.o where the -r switch says to replace the object if it already exists in the library else add it. Regards, Ed
Aug 2, 2002 #3 aloknath Programmer Jul 21, 2002 1 IN How can I use this commands in a batch file ? I had a batch file which accepts the current directory as a parameter and does some thing. I want the batch file to read the current directory automatically instead of me passing it explicitly. How can I do this ? By the way I am using Windows as OS. Upvote 0 Downvote
How can I use this commands in a batch file ? I had a batch file which accepts the current directory as a parameter and does some thing. I want the batch file to read the current directory automatically instead of me passing it explicitly. How can I do this ? By the way I am using Windows as OS.
Aug 2, 2002 #4 olded Programmer Oct 27, 1998 1,065 US Hi: Sorry, I'm not a windows programmer. Are you sure ar even works under windows? Regards, Ed Upvote 0 Downvote
Aug 2, 2002 #5 dds82 Programmer Jun 5, 2002 251 US It doesn't. If you're using Visual C++, when you create your new project, you can pick the "Win32 Static Library" project. Upvote 0 Downvote
It doesn't. If you're using Visual C++, when you create your new project, you can pick the "Win32 Static Library" project.