Page 1 of 1

How to get Eclipse's Content Assist with Strings and Streams

Posted: Sat Oct 10, 2009 3:45 pm
by tod
From information in a previous thread I managed to get Eclipse's Content Assist feature working with some parts of the STL.

However, today I was working with streams and strings and content assist doesn't work. The same project still works fine with vectors. Does anyone know what the trick is for getting it to work on streams and strings. I can manually type everything and it compiles and runs fine I just don't get any suggestions for any members.

(If you are interested in how to get the STL pieces like vector working, I wrote the results up in a blog entry here: http://syncor.blogspot.com/2009/08/gali ... d-stl.html

Re: How to get Eclipse's Content Assist with Strings and Streams

Posted: Mon Nov 16, 2009 12:24 pm
by fanat9
Yep, looks like something wrong with PATH to GCC for ENVIRONMENTS. Don't know why.
Anyway, you can always manually set whatever it can't find. To see unresolved includes go to "Project/Index/Search for unresolved includes". In my case it was:

Code: Select all

C:\nburn\gcc-m68k\m68k-elf\include\c++\4.2.1
C:\nburn\gcc-m68k\m68k-elf\include\c++\4.2.1\m68k-elf
C:\nburn\gcc-m68k\lib\gcc\m68k-elf\4.2.1\include
I remember you need exact steps, so see screenshots below =)

Best regards.

Re: How to get Eclipse's Content Assist with Strings and Streams

Posted: Thu Dec 10, 2009 1:13 pm
by tod
fanat9,

Thanks again. Adding the "lib" path seemed to do the trick for me. Much nicer now.

Tod