code complete...completly confused?? [message #119900] |
Tue, 07 September 2004 14:06  |
Eclipse User |
|
|
|
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 #120902 is a reply to message #120695] |
Mon, 13 September 2004 15:06  |
Eclipse User |
|
|
|
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?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.27557 seconds