Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » auto-complete user defined class members ?
auto-complete user defined class members ? [message #97360] Thu, 25 March 2004 14:39 Go to next message
Eclipse UserFriend
Originally posted by: hrg27.msn.com

Hi

does CDT auto-complete user defined class members ?
for instance if I type :

myclass.f

will it show me the members which start with f ?

If answer is yes, how can I get it to work ?

Thanks in advance

Hamid


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: auto-complete user defined class members ? [message #97475 is a reply to message #97360] Fri, 26 March 2004 16:55 Go to previous messageGo to next message
Eclipse UserFriend
Content assist is a work in progress. It is working reasonably well in the
HEAD. The default shortcut is ctrl+space.

How well it works depends on how well the parser understands your code.
Ensuring that your project's include paths and predefined symbols are set up
will help.

-Andrew

"Hamid" <hrg27@msn.com> wrote in message
news:opr5fnknola9iwz6@ccni-18.wpi.edu...
> Hi
>
> does CDT auto-complete user defined class members ?
> for instance if I type :
>
> myclass.f
>
> will it show me the members which start with f ?
>
> If answer is yes, how can I get it to work ?
>
> Thanks in advance
>
> Hamid
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: auto-complete user defined class members ? [message #98161 is a reply to message #97475] Tue, 30 March 2004 01:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hrg27.msn.com

>> Hi
>>
>> does CDT auto-complete user defined class members ?
>> for instance if I type :
>>
>> myclass.f
>>
>> will it show me the members which start with f ?
>>
>> If answer is yes, how can I get it to work ?
>>
>> Thanks in advance
>>
>> Hamid
> Content assist is a work in progress. It is working reasonably well i=
n =

> the
> HEAD. The default shortcut is ctrl+space.
>
> How well it works depends on how well the parser understands your code=
..
> Ensuring that your project's include paths and predefined symbols are =
=

> set up
> will help.

Thanks for the reply. I am not sure what HEAD is (probably codename for =
a =

beta version) but
how do I set up the project to take the most out of auto-complete ?
And what exactly you mean by predefined symbols ? Do you mean standard =

library objects ?
How do I tell CDT where they are, if I am using minGW ?

Thanks
Hamid
Re: auto-complete user defined class members ? [message #98297 is a reply to message #98161] Tue, 30 March 2004 10:48 Go to previous messageGo to next message
Eclipse UserFriend
HEAD is the latest version of the code in the cvs repository. You're best
bet would be to get the latest nightly build
http://update.eclipse.org/tools/cdt/updates/builds/2.0
or wait a bit and get the M8 build which is coming soon.

If you are using managed build, then the predefined symbols will be largely
taken care of for you, and you will just need to make sure that the include
paths are set for any files that you include with #include < ... >, likely
whatever mingw's version of /usr/include is.

If you are using standard make, then in addition to the include paths you'll
need to add any defined symbols introduced with -D in your makefile. Also
any defined symbols the compiler knows about would help, ie defining
__i386__ helps.

You put both the include paths and defined symbols in the project
properties. Under standard make its under the Paths and Symbols tab for the
C/C++ Make Project. For Managed make its under the configuration settings
for the C/C++ Build.

"Hamid" <hrg27@msn.com> wrote in message
news:opr5nvxgbta9iwz6@hamid.ind.wpi.edu...
>> Hi
>>
>> does CDT auto-complete user defined class members ?
>> for instance if I type :
>>
>> myclass.f
>>
>> will it show me the members which start with f ?
>>
>> If answer is yes, how can I get it to work ?
>>
>> Thanks in advance
>>
>> Hamid
> Content assist is a work in progress. It is working reasonably well in
> the
> HEAD. The default shortcut is ctrl+space.
>
> How well it works depends on how well the parser understands your code.
> Ensuring that your project's include paths and predefined symbols are
> set up
> will help.

Thanks for the reply. I am not sure what HEAD is (probably codename for a
beta version) but
how do I set up the project to take the most out of auto-complete ?
And what exactly you mean by predefined symbols ? Do you mean standard
library objects ?
How do I tell CDT where they are, if I am using minGW ?

Thanks
Hamid
Re: auto-complete user defined class members ? [message #98331 is a reply to message #98297] Tue, 30 March 2004 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hrg27.msn.com

I generally use standard make but since I am just creating simple projec=
ts
I don't have -D option in my makefile, so I should be fine there.

The paths and symbols like __i386__ are set correctly but I still get =

errors like:
"Can't parse main.cpp" in log file of CDT

I am coming to the point that there is still a long way to a
fucntional content assist, so I will wait :)

I am trying to switch to Eclipse because:
1- I write code for scientific computation and Microsoft Studio is not =

definittely a good choice
2- I want to use Java/SWT in Eclipse to create projects which have SWT G=
UI =

but calls fast C/C++ codes for computation
so I can port my code to different platforms with less pain.

And that's why I need content assist to help me remember numerous math =

functions/algorithms that we have written.
Thanks

Hamid

On Tue, 30 Mar 2004 10:48:00 -0500, Andrew Niefer <aniefer@ca.ibm.com> =

wrote:

> HEAD is the latest version of the code in the cvs repository. You're =
=

> best
> bet would be to get the latest nightly build
> http://update.eclipse.org/tools/cdt/updates/builds/2.0
> or wait a bit and get the M8 build which is coming soon.
>
> If you are using managed build, then the predefined symbols will be =

> largely
> taken care of for you, and you will just need to make sure that the =

> include
> paths are set for any files that you include with #include < ... >, =

> likely
> whatever mingw's version of /usr/include is.
>
> If you are using standard make, then in addition to the include paths =
=

> you'll
> need to add any defined symbols introduced with -D in your makefile. =
=

> Also
> any defined symbols the compiler knows about would help, ie defining
> __i386__ helps.
>
> You put both the include paths and defined symbols in the project
> properties. Under standard make its under the Paths and Symbols tab f=
or =

> the
> C/C++ Make Project. For Managed make its under the configuration =

> settings
> for the C/C++ Build.
>
> "Hamid" <hrg27@msn.com> wrote in message
> news:opr5nvxgbta9iwz6@hamid.ind.wpi.edu...
>>> Hi
>>>
>>> does CDT auto-complete user defined class members ?
>>> for instance if I type :
>>>
>>> myclass.f
>>>
>>> will it show me the members which start with f ?
>>>
>>> If answer is yes, how can I get it to work ?
>>>
>>> Thanks in advance
>>>
>>> Hamid
>> Content assist is a work in progress. It is working reasonably well =
in
>> the
>> HEAD. The default shortcut is ctrl+space.
>>
>> How well it works depends on how well the parser understands your cod=
e.
>> Ensuring that your project's include paths and predefined symbols are=

>> set up
>> will help.
>
> Thanks for the reply. I am not sure what HEAD is (probably codename fo=
r a
> beta version) but
> how do I set up the project to take the most out of auto-complete ?
> And what exactly you mean by predefined symbols ? Do you mean standard=

> library objects ?
> How do I tell CDT where they are, if I am using minGW ?
>
> Thanks
> Hamid
>
>



-- =

Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: auto-complete user defined class members ? [message #98630 is a reply to message #98297] Sun, 04 April 2004 10:27 Go to previous message
Eclipse UserFriend
Originally posted by: juanmedin{removethis}.{andthistoo}msn.com

Hi,

I've the same problem: I'm unable to use content assist. I'm using the M8
build in a linux machine and working with a managed project.

I added the directory to the #include files but CRTL+SPACE doesn't bring
up any method/member in the included class or even in my own class.

Any help would be really welcome.

Thanks in advance,

- Juan



On Tue, 30 Mar 2004 10:48:00 -0500, Andrew Niefer wrote:

> HEAD is the latest version of the code in the cvs repository. You're
> best bet would be to get the latest nightly build
> http://update.eclipse.org/tools/cdt/updates/builds/2.0 or wait a bit and
> get the M8 build which is coming soon.
>
> If you are using managed build, then the predefined symbols will be
> largely taken care of for you, and you will just need to make sure that
> the include paths are set for any files that you include with #include <
> ... >, likely whatever mingw's version of /usr/include is.
>
> If you are using standard make, then in addition to the include paths
> you'll need to add any defined symbols introduced with -D in your
> makefile. Also any defined symbols the compiler knows about would help,
> ie defining __i386__ helps.
>
> You put both the include paths and defined symbols in the project
> properties. Under standard make its under the Paths and Symbols tab for
> the C/C++ Make Project. For Managed make its under the configuration
> settings for the C/C++ Build.
Previous Topic:?DT 1.2 and con
Next Topic:M8 prefs/workbench/startup error
Goto Forum:
  


Current Time: Fri Jul 18 06:13:35 EDT 2025

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

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

Back to the top