![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Unknown
Join Date: Apr 2008
Location: unknown
Posts: 21
Rep Power: 0
![]() |
initilizer incmplete type
i am doing this program which is a parser calculator but when i compile it there's an error which is "FunctionTable funtab has initializer but incomplete type", i am using codeblocks 8.02, and my program is kinda long. I think my algorithms are correct and the only problem is in the syntax or how i coded it... here's a snipet of the main function
c++ Syntax (Toggle Plain Text)
its compiled as a one project, thats why it only had one header file, it is composed of 9 source files and 8 header files. i suppose that the problem is in the function table source file or function table header file... FunTab.h c++ Syntax (Toggle Plain Text)
FunTab.cpp c++ Syntax (Toggle Plain Text)
should i provide a Link to the whole program? thank you very much...
__________________
------------------------------------------------------------------------- I thought what I'd Do was, I'd pretend to be one of those deaf mutes ------------------------------------------------------------------------ |
|
|
|
|
|
#2 |
|
Not a user?
Join Date: Sep 2007
Posts: 190
Rep Power: 1
![]() |
Re: initilizer incmplete type
c++ Syntax (Toggle Plain Text)
This doesn't look right to me, you have the const keyword without a name. |
|
|
|
|
|
#3 | |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 610
Rep Power: 3
![]() |
Re: initilizer incmplete type
Quote:
const there indicates that when the method is called, it does not modify the object.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
|
#4 |
|
Programmer
Join Date: Nov 2007
Posts: 75
Rep Power: 1
![]() |
Re: initilizer incmplete type
zip up the source and attach it
|
|
|
|
|
|
#5 |
|
Unknown
Join Date: Apr 2008
Location: unknown
Posts: 21
Rep Power: 0
![]() |
Re: initilizer incmplete type
__________________
------------------------------------------------------------------------- I thought what I'd Do was, I'd pretend to be one of those deaf mutes ------------------------------------------------------------------------ |
|
|
|
|
|
#6 |
|
Hobbyist
Join Date: Sep 2005
Posts: 256
Rep Power: 3
![]() |
Re: initilizer incmplete type
You need to:
#include "Scanner.h" #include "SymTab.h" #include "FunTab.h" #include "Store.h" #include <cassert> in PTree.hAnd there's an error in SymTab.cpp at line 54 about calling strcmp with 3 arguments. No doubt you meant to usestrncmp. |
|
|
|
|
|
#7 | |
|
Unknown
Join Date: Apr 2008
Location: unknown
Posts: 21
Rep Power: 0
![]() |
Re: initilizer incmplete type
Quote:
__________________
------------------------------------------------------------------------- I thought what I'd Do was, I'd pretend to be one of those deaf mutes ------------------------------------------------------------------------ |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Arrays with Generic Type | azurik | Java | 6 | Jun 14th, 2006 12:31 PM |
| Pointer return type,.. ??? | Mack1982 | C++ | 28 | May 26th, 2006 8:02 PM |
| base type has incomplete type | Eric the Red | C++ | 4 | Mar 3rd, 2006 8:04 PM |
| Conversion problem. string type to type int. | HackeZ | C++ | 4 | Dec 14th, 2005 6:52 PM |
| Defining a bool type | nnxion | C | 6 | Oct 7th, 2005 8:39 AM |