Code:LIBS = ${LIBDIR}/libfcf041.a ${LIBDIR}/libfcf012.a
i know how to create object files i.e cc -c program2.c
can any one help me in the command for creating library files.
Thanks & Regards,
vijay,
Code:LIBS = ${LIBDIR}/libfcf041.a ${LIBDIR}/libfcf012.a
i know how to create object files i.e cc -c program2.c
can any one help me in the command for creating library files.
Thanks & Regards,
vijay,
i want to create a make file so i need library functions.Is there any command like crating object files.
i found this in make file.So i want to know how to create these libraries
Waiting for valuable replies.Code:## List all the libraries needed to be linked in. LIBS = ./libfcf021.a \ ./libfcf041.a \ ./libfco710.a \ ./libfcf012.a
Thanks & Regards,
vijay
Yes, and to do that, assuming we are using Linux/Unix platform, is "ar" - that is, if you want to create them from object files - to get object files you need to compile the source files.
A library is simply a file that contains multiple object files.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
ya i am using unix platform.Can u please send me the command for that
this is the make file-->fcf012u0.mak
c-file is fcf012u0.c
and object file is program2.o it was created by cc -c fcf012u0.c
to create a library file libfcf012.a
can you help with the command for creating the object file.
So which part of "There is a command called 'ar' that creates an archive (aka library)" did you not understand?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.