I have an issue with Eclipse Indigo complaining that methods of a class couldn\'t be resolved, but compiling anyway and working correctly (AFAIK). It\'s a very simple progr
Not that i'm any expert at all but i just had a similar problem using.empty for whatever reason it will work if you change char to string minor change but resolved the issue on my program
Try this:
In your project explorer window, right click on your project -> Index -> Rebuild
sizeof(pointer)
returns the size of the pointer (4 on 32-bit systems and 8 on 64-bit), not the size of what it points to! Save the dimensions in the class, and add a function to return them.
Also, in initializePop
shouldn't you allocate the actual X
array?
X = calloc(N, sizeof(char *));
Or rather, you should use new
for allocation since you are using C++:
X = new char* [N];
and later:
X[i] = new char [numbits];
This could be an indexing issue related to external #include
headers not found. Follow the steps below and see if it helps:
#include
(e.g. "cute.h"
) and press
F3
(i.e. "Show declaration"); see if it's able to access that file
or not; if not copy those files on some notepadC://Eclipse/MyWork/Workspace/Project/include_1
" and
"ide_listener.h" is located
at,"C://Eclipse/MyWork/Workspace/Project/include_2
", then copy both
the folder paths on some notepadProject -> Properties -> C/C++ General ->
Paths and Sybmols
; you will see several tabs as Includes
,
Sybmols
, Library Paths
...Library Paths -> Add -> Workspace... -> <locate the above
folder paths>
and press OKWindow -> Preferences ->
C/C++ -> Editor -> Scalability -> "Enable scalability mode when
..."
and set the number of lines to some big number such as
500000
and press "OK";The last step is needed, because when your file grows in line number and if exceeds the above number then eclipse will stop showing definitions for some "scalability" reasons, even though it would have indexed.