Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » code complete...completly confused??
code complete...completly confused?? [message #119900] Tue, 07 September 2004 18:06 Go to next message
Eclipse UserFriend
Originally posted by: noyoucannothavemyemail.foomanchoo.com

This is pretty much as simple as it gets....

#include <string>

int main(int argc, char *argv[])
{
string str;
str. <HIT CTRL-SPACE>
}

brings up..no functions..and instead gives me a list of stuff like:

__codecvt_ok;
..
..
PTHREAD_CANCEL_ASYNCHRONOUS
..
..

any thoughts what could be wrong?
Re: code complete...completly confused?? [message #119966 is a reply to message #119900] Tue, 07 September 2004 18:58 Go to previous messageGo to next message
Sean Evoy is currently offline Sean EvoyFriend
Messages: 195
Registered: July 2009
Senior Member
Dan,
Do you have the includes paths and defined symbols for the compiler
setup? The scanner relies on those in order to understand what it finds
in the compiler-supplied header files. Does your code specify that it is
using the namespace 'std'. If not, then I suspect that you will get
inconsistent content assist results (not to mention compiler errors).

Sean

dan wrote:

> This is pretty much as simple as it gets....
>
> #include <string>
>
> int main(int argc, char *argv[])
> {
> string str;
> str. <HIT CTRL-SPACE>
> }
>
> brings up..no functions..and instead gives me a list of stuff like:
>
> __codecvt_ok;
> ..
> ..
> PTHREAD_CANCEL_ASYNCHRONOUS
> ..
> ..
>
> any thoughts what could be wrong?
>
>
>
>
>
>
Re: code complete...completly confused?? [message #120685 is a reply to message #119966] Fri, 10 September 2004 21:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: noyoucannothavemyemail.foomanchoo.com

sorry I should have specified the project type...

The project is a Standard Make, meaning the make file defines the correct
include paths, etc.. right??

In this case does the parser not use the include paths defined by the make
files?

I also tried explicity specifying the name space as well to no avail..


"Sean Evoy" <sevoy@ca.ibm.com> wrote in message
news:chl059$4hu$2@eclipse.org...
> Dan,
> Do you have the includes paths and defined symbols for the compiler
> setup? The scanner relies on those in order to understand what it finds
> in the compiler-supplied header files. Does your code specify that it is
> using the namespace 'std'. If not, then I suspect that you will get
> inconsistent content assist results (not to mention compiler errors).
>
> Sean
>
> dan wrote:
>
> > This is pretty much as simple as it gets....
> >
> > #include <string>
> >
> > int main(int argc, char *argv[])
> > {
> > string str;
> > str. <HIT CTRL-SPACE>
> > }
> >
> > brings up..no functions..and instead gives me a list of stuff like:
> >
> > __codecvt_ok;
> > ..
> > ..
> > PTHREAD_CANCEL_ASYNCHRONOUS
> > ..
> > ..
> >
> > any thoughts what could be wrong?
> >
> >
> >
> >
> >
> >
Re: code complete...completly confused?? [message #120695 is a reply to message #120685] Fri, 10 September 2004 21:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ddaoust.ca.ibm.com

This program does not compile at the string declaration, since you do not
have the proper namespace.

I created a managed make project with a main.cpp that contains:
---
#include <string>

using namespace std;
int main(int argc, char *argv[])
{
string str;
str.
}

---
I do a build (so that the compiler builtins are discovered). Then a
content assist on the str. provides a long list of completions.

- Dave


"dan" <noyoucannothavemyemail@foomanchoo.com> wrote in message
news:cht5p2$4ph$1@eclipse.org...
> sorry I should have specified the project type...
>
> The project is a Standard Make, meaning the make file defines the correct
> include paths, etc.. right??
>
> In this case does the parser not use the include paths defined by the make
> files?
>
> I also tried explicity specifying the name space as well to no avail..
>
>
> "Sean Evoy" <sevoy@ca.ibm.com> wrote in message
> news:chl059$4hu$2@eclipse.org...
> > Dan,
> > Do you have the includes paths and defined symbols for the compiler
> > setup? The scanner relies on those in order to understand what it finds
> > in the compiler-supplied header files. Does your code specify that it is
> > using the namespace 'std'. If not, then I suspect that you will get
> > inconsistent content assist results (not to mention compiler errors).
> >
> > Sean
> >
> > dan wrote:
> >
> > > This is pretty much as simple as it gets....
> > >
> > > #include <string>
> > >
> > > int main(int argc, char *argv[])
> > > {
> > > string str;
> > > str. <HIT CTRL-SPACE>
> > > }
> > >
> > > brings up..no functions..and instead gives me a list of stuff like:
> > >
> > > __codecvt_ok;
> > > ..
> > > ..
> > > PTHREAD_CANCEL_ASYNCHRONOUS
> > > ..
> > > ..
> > >
> > > any thoughts what could be wrong?
> > >
> > >
> > >
> > >
> > >
> > >
>
>
Re: code complete...completly confused?? [message #120902 is a reply to message #120695] Mon, 13 September 2004 19:06 Go to previous message
Eclipse UserFriend
Originally posted by: noyoucannothavemyemail.foomanchoo.com

Odd, I also tried that...still have a failure..

However..I found that in the my DEBUG folder, eclipse has marked the file:
main.d as having an error (I believe this is auto-generated by
eclipse..right?)

specifically the error is on this line...:

main.d #define __VERSION__ "2.96 20000731 (Red Hat Linux 7.3 2.96-113)"


Im guessing...I need a newer version of make? or gcc?

typeing make --version, yields 3.79.1
and gcc --version, yeilds 2.96


"David Daoust" <ddaoust@ca.ibm.com> wrote in message
news:cht6tq$68q$1@eclipse.org...
> This program does not compile at the string declaration, since you do not
> have the proper namespace.
>
> I created a managed make project with a main.cpp that contains:
> ---
> #include <string>
>
> using namespace std;
> int main(int argc, char *argv[])
> {
> string str;
> str.
> }
>
> ---
> I do a build (so that the compiler builtins are discovered). Then a
> content assist on the str. provides a long list of completions.
>
> - Dave
>
>
> "dan" <noyoucannothavemyemail@foomanchoo.com> wrote in message
> news:cht5p2$4ph$1@eclipse.org...
> > sorry I should have specified the project type...
> >
> > The project is a Standard Make, meaning the make file defines the
correct
> > include paths, etc.. right??
> >
> > In this case does the parser not use the include paths defined by the
make
> > files?
> >
> > I also tried explicity specifying the name space as well to no avail..
> >
> >
> > "Sean Evoy" <sevoy@ca.ibm.com> wrote in message
> > news:chl059$4hu$2@eclipse.org...
> > > Dan,
> > > Do you have the includes paths and defined symbols for the compiler
> > > setup? The scanner relies on those in order to understand what it
finds
> > > in the compiler-supplied header files. Does your code specify that it
is
> > > using the namespace 'std'. If not, then I suspect that you will get
> > > inconsistent content assist results (not to mention compiler errors).
> > >
> > > Sean
> > >
> > > dan wrote:
> > >
> > > > This is pretty much as simple as it gets....
> > > >
> > > > #include <string>
> > > >
> > > > int main(int argc, char *argv[])
> > > > {
> > > > string str;
> > > > str. <HIT CTRL-SPACE>
> > > > }
> > > >
> > > > brings up..no functions..and instead gives me a list of stuff like:
> > > >
> > > > __codecvt_ok;
> > > > ..
> > > > ..
> > > > PTHREAD_CANCEL_ASYNCHRONOUS
> > > > ..
> > > > ..
> > > >
> > > > any thoughts what could be wrong?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> >
> >
>
>
Previous Topic:debugging error
Next Topic:Eclipse , MinGW Developer Studio and Dev-Cpp
Goto Forum:
  


Current Time: Sun Jun 30 00:30:23 GMT 2024

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

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

Back to the top