"How can I use gcc to build a static library (.a)?"
Pass gcc the -static option. See:
man gcc
" What is the difference between gcc and g++ (as C++ compilers)?"
Use gcc to compile programswritten in C. Use g++ to compile programs written in C++. I think that recently GNU dropped the distinction and both compilers will compile either C or C++ but I am not sure of that.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites