[computer-go] C++: #include vs .h files

Peter Drake drake at lclark.edu
Wed Aug 9 14:48:59 PDT 2006


Thanks for the quick response on the array passing. I think I get it  
now.

I'm having a devil of a time trying to divide my classes between .h  
and .cpp files. Specifically, if I have the same #include in  
several .cpp files, I get complaints about redundant definitions from  
the linker. I can avoid this by putting everything in the .h files  
(except for one .cpp file), but then I can't define classes that  
depend on each other.

Any advice?

Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://computer-go.org/pipermail/computer-go/attachments/20060809/21d8b91c/attachment.htm


More information about the computer-go mailing list