Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Parser not recognize symbols defined in another file
Parser not recognize symbols defined in another file [message #101449] Tue, 04 May 2004 20:08 Go to next message
Eclipse UserFriend
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 #101722 is a reply to message #101449] Fri, 07 May 2004 09:43 Go to previous messageGo to next message
Eclipse UserFriend
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: Parser not recognize symbols defined in another file [message #101749 is a reply to message #101722] Fri, 07 May 2004 11:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ae8h-kry.asahi-net.or.jp

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: Parser not recognize symbols defined in another file [message #101757 is a reply to message #101749] Fri, 07 May 2004 12:19 Go to previous messageGo to next message
Eclipse UserFriend
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
> > >
> >
> >
>
Code Assist successful [message #101840 is a reply to message #101722] Sat, 08 May 2004 18:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ae8h-kry.asahi-net.or.jp

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
>
Re: Code Assist successful [message #101990 is a reply to message #101840] Tue, 11 May 2004 11:53 Go to previous message
Eclipse UserFriend
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
> >
>
Previous Topic:project concept suggestion
Next Topic:Run button dows not open system editor
Goto Forum:
  


Current Time: Wed Jun 04 08:39:51 EDT 2025

Powered by FUDForum. Page generated in 0.33550 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top