H.S.Rai wrote:
> st.h
> class foo {
> };
>
> st.cc
> # include <iostream.h>
> # include "st.h"
> int foo::counter;
> foo::foo () { counter++;}
> stMain.cc
> # include <iostream.h>
> # include "st.h"
> int main () {
> }
> g++ stMain.cc st.cc
The correct (or only) way of compiling such files is
$ g++ -c st.cc
$ g++ -c stmain.cc
$ g++ -o st stmain.o st.o
HTH
Shridhar
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help