|
-
August 24th, 2009, 01:59 PM
#11
Re: Design problem with a virtual template class
I use gcc version 4.0.1 (Apple Inc. build 5488)
Could you provide a simple (bare minimum) application file that uses the header file and so that we can compile and see which one you are referring to.
Just a small suggestion I find the below mentioned usually convenient:
1) writing a small piece of code with basic functionality, compiling and running it, only if everything is ok, then I build on it. That way it helps a bit (this is my view) instead of clearing all the errors at the end and cud means re-work as well
2) since it is your program, you would have spent time on it, instead of posting the entire program, you can just create a bare minimum code (indicating only the problematic area), that way it would be a touch simpler to debug, that way u wud have isolated the problem to some extent.
Changes I made :
-----------------------
1) since the destructor wasn't built I just put a dummy destructor implementation to get rid of the linker error.
my application file looks like this (which works ok):
Provide ur application file (just the bare minimum) indicating the problematic area.
Code:
int main()
{
ArrayMatrix<int> m1(1, 2);
return(0);
}
Also note, with multiple files you also need to consider makefile if u r doing it manually.
Last edited by Muthuveerappan; August 24th, 2009 at 02:04 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|