hi i am using g++ on windows and trying to learn c,c++.. i was trying to make and use user defined libraries and wrote
tom.h --------- void mylibfn(void); tom.c -------- void mylibfn(){ printf("my libfn called!\n"); } then i made tom.o by g++ -c tom.c and using ar qv libfruit.a tom.o i created libfruit.a i wish to call the mylibfn() from another test.c like test.c -------- int main(){ mylibfn(); } how do i compile test.c using g++ ,giving the libfruit.a as argument ? for the cc compiler it is something like cc test.c -lfruit -L/home/sharedlib .. but i am bit confused by g++ options.. can anyone help? dn _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus