| Parser not recognize symbols defined in another file [message #101449] | 
Tue, 04 May 2004 20:08   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: ae8h-kry.asahi-net.or.jp 
 
Hello, 
I use Eclipse 3.0M8 and CDT2.0.200405040300 on Windows XP and cvgwin. 
I'm trying to use the wxWigets C++ GUI Toolkit on CDT. 
One of the header files in wxWidgets has the following line: 
    class WXDLLEXPORT wxCaret; 
and in another file, there is 
    #define WXDLLEXPORT 
But the CDT parser recognizes wxCaret as 'class WXDLLEXPORT' variable, 
not class declaration. 
 
Why I say such a thing? 
This confuses the CDT parser and makes Code Assist less useful. 
 
I avoid this parser confusion by setting 'WXDLLEXPORT' as 'Defined symbols' 
in the project property. 
 
I think this is an ad hoc solution. 
Does anybody know how I should do? 
And does the CDT Team have a plan to handle this problem? 
 
Thank you. 
--- 
Hideki Kariya
 |  
 |  
  | 
 | 
 | 
| Re: Parser not recognize symbols defined in another file [message #101757 is a reply to message #101749] | 
Fri, 07 May 2004 12:19    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: ae8h-kry.asahi-net.or.jp 
 
Sorry, maybe updating of CDT has nothing to do with the problem solution. 
I forgot setting "WXDLLEXPORT". This ad hoc way makes Code Assist work. 
 
 
"kariya" <ae8h-kry@asahi-net.or.jp> wrote in message 
news:c7gafk$hfj$1@eclipse.org... 
> Updating CDT to 2.0.200405060300 solved my problem posted above. 
> Code Assist works pretty well, 
> but some symbols such as  'wxBLACK' is not displayed in Code Assist 
> candidates 
> though 'wxBLACK' and other symbols are displayed in the Outline panel. 
> (The header file that defines the symbols is included.) 
> I'll check what is happening further. 
> Thank you. 
> --- 
> Hideki Kariya 
> 
> 
> "johnc" <jcamelon@ca.ibm.com> wrote in message 
> news:c7g35o$6d9$1@eclipse.org... 
> > The Outline View/CModel does not recognize wxCaret as a foreward 
> declaration 
> > of a class; however, the indexer and content assist should. 
> > Assuming your include paths and preprocessor definitions are set up 
> > properly, and the file that ocntains the wxCaret definition is included, 
> you 
> > should see it come up in Content Assist. 
> > If not, please raise a defect @ bugs.eclipse.org and I'll take a look at 
> it. 
> > 
> > Thanks 
> > JohnC 
> > 
> > "kariya" <ae8h-kry@asahi-net.or.jp> wrote in message 
> > news:c79atr$gkm$1@eclipse.org... 
> > > Hello, 
> > > I use Eclipse 3.0M8 and CDT2.0.200405040300 on Windows XP and cvgwin. 
> > > I'm trying to use the wxWigets C++ GUI Toolkit on CDT. 
> > > One of the header files in wxWidgets has the following line: 
> > >     class WXDLLEXPORT wxCaret; 
> > > and in another file, there is 
> > >     #define WXDLLEXPORT 
> > > But the CDT parser recognizes wxCaret as 'class WXDLLEXPORT' variable, 
> > > not class declaration. 
> > > 
> > > Why I say such a thing? 
> > > This confuses the CDT parser and makes Code Assist less useful. 
> > > 
> > > I avoid this parser confusion by setting 'WXDLLEXPORT' as 'Defined 
> > symbols' 
> > > in the project property. 
> > > 
> > > I think this is an ad hoc solution. 
> > > Does anybody know how I should do? 
> > > And does the CDT Team have a plan to handle this problem? 
> > > 
> > > Thank you. 
> > > --- 
> > > Hideki Kariya 
> > > 
> > 
> > 
>
 |  
 |  
  | 
 | 
| Re: Code Assist successful [message #101990 is a reply to message #101840] | 
Tue, 11 May 2004 11:53   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
No worries! 
Feel free to raise defects on any behaviour that you feel is incorrect in 
content assist. 
"kariya" <ae8h-kry@asahi-net.or.jp> wrote in message 
news:c7jn6j$k4s$1@eclipse.org... 
> Hello, 
> 
> Sorry. I didn't see the message "Code Assist has timed out". 
> I tried to set the value of "Contnent Assist parsing timeout" to the 
> maximum, 
> and Code Assist seems to work well without any configuration such as 
> 'Defined symbols'. 
> 
> I hava to apologize to say irrelevant things. 
> 
> Thank you. 
> --- 
> Hideki Kariya 
> 
> 
> "johnc" <jcamelon@ca.ibm.com> wrote in message 
> news:c7g35o$6d9$1@eclipse.org... 
> > The Outline View/CModel does not recognize wxCaret as a foreward 
> declaration 
> > of a class; however, the indexer and content assist should. 
> > Assuming your include paths and preprocessor definitions are set up 
> > properly, and the file that ocntains the wxCaret definition is included, 
> you 
> > should see it come up in Content Assist. 
> > If not, please raise a defect @ bugs.eclipse.org and I'll take a look at 
> it. 
> > 
> > Thanks 
> > JohnC 
> > 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.04230 seconds