I understand that boost regex static library is created with the ar utility by archiving the individual object files.
I linked boost regex library by using the -l option in gcc. This worked very well.
g++ *.o libboost_regex-gcc-1_37.a -o sairay.out
I individually compiled the boost regex source files and then tried to link the object files of my application and the object files of boost regex into a single executable. But now I am getting errors.
g++ *.o -o sairay.out
Undefined first referenced
symbol in file
main /opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.5/crt1.o
I wish to know what is the difference between linking the static library and linking the individual objects of the static library files with the applicatiion?