Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » includes and unresolved symbols problem on ubuntu  () 1 Vote
icon9.gif  includes and unresolved symbols problem on ubuntu [message #759241] Mon, 28 November 2011 00:49 Go to next message
marcelofudo is currently offline marcelofudo
Messages: 1
Registered: November 2011
Junior Member
Hello.

my problem is, whem I create a hello world c/c++project on eclipse, eclipse does not find the standart includes, so symbols like cout, cin and so on, are not resolved.

I'm able to fix this by manualy seting the librarys path, but i need to do this in every single project. is there a way to make eclipse do this manualy for me? i tried for up to 3 hours and could not find a solution.

on windows it works just fine, is just on ubuntu that is does not detect the librarys.

I'm not a expert on linux.

Sorry if bad english and thanks in advance. Smile
Re: includes and unresolved symbols problem on ubuntu [message #763879 is a reply to message #759241] Sat, 10 December 2011 20:05 Go to previous messageGo to next message
Anatoly  is currently offline Anatoly
Messages: 4
Registered: December 2011
Junior Member
Same problem with Eclipse Indigo on Ubuntu 11.10...
Please help.

[Updated on: Sat, 10 December 2011 20:06]

Report message to a moderator

Re: includes and unresolved symbols problem on ubuntu [message #764522 is a reply to message #763879] Mon, 12 December 2011 10:51 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1957
Registered: July 2009
Senior Member
Do you use a non-English locale on your Ubuntu?
For a solution and explanation see
http://www.eclipse.org/forums/index.php/t/261852/
http://www.eclipse.org/forums/index.php/t/262896/


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: includes and unresolved symbols problem on ubuntu [message #764747 is a reply to message #764522] Mon, 12 December 2011 19:29 Go to previous messageGo to next message
Anatoly  is currently offline Anatoly
Messages: 4
Registered: December 2011
Junior Member
Yes, I'm not using the English language in my Ubuntu ...
Or have I misunderstood the solutions or they do not work.
Could you describe them more understandable (step by step)? Please.
Re: includes and unresolved symbols problem on ubuntu [message #765008 is a reply to message #764747] Tue, 13 December 2011 08:55 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1957
Registered: July 2009
Senior Member
You can either download a nightly build of CDT that has this bug fixed or create a shell script to start Eclipse.

#!/bin/bash
# english gcc output
export LC_ALL=en_GB.UTF-8

eclipse &




Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: includes and unresolved symbols problem on ubuntu [message #765828 is a reply to message #765008] Wed, 14 December 2011 18:37 Go to previous messageGo to next message
Anatoly  is currently offline Anatoly
Messages: 4
Registered: December 2011
Junior Member
Could you give a link to download a nightly build
A script is still not working ... The problem remains, I do not know why.
Re: includes and unresolved symbols problem on ubuntu [message #766130 is a reply to message #765828] Thu, 15 December 2011 09:05 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1957
Registered: July 2009
Senior Member
https://hudson.eclipse.org/hudson/job/cdt-nightly/lastSuccessfulBuild/

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
To run the script [message #767003 is a reply to message #759241] Fri, 16 December 2011 20:41 Go to previous messageGo to next message
Bernd Winkler is currently offline Bernd Winkler
Messages: 1
Registered: December 2011
Junior Member
The script will work so:

Write the script in a text editor.

Instead of the last line "eclipse &", write "./eclipse &".

Save the script in the directory where the file "eclipse" is. Name the script e.g. "start_eclipse.sh".

Click with the right mouse button on the file "start_eclipse.sh". Choose "properties".

In the tab "access rights" set a tick at the option "file execute as program".
Re: To run the script [message #767211 is a reply to message #767003] Sat, 17 December 2011 10:17 Go to previous messageGo to next message
Anatoly  is currently offline Anatoly
Messages: 4
Registered: December 2011
Junior Member
I even installed eclipse helios there is a similar problem. When I create the project is created without includes. And it emphasizes the inclusion of the yellow line. When I add includes their own hands, everything is good.
Re: includes and unresolved symbols problem on ubuntu [message #768849 is a reply to message #759241] Tue, 20 December 2011 23:21 Go to previous message
Dan Kegel is currently offline Dan Kegel
Messages: 2
Registered: December 2011
Junior Member
I just tried to reproduce this as follows:

1) install eclipse indigo sr1 with cdt from
eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr1
2) start eclipse, do New / C++ Project / Hello World Project
3) do Window / Show View / C++
4) Hello should be showing in the project explorer; open it and look at hello.cpp
5) check whether there is a bug mark next to the #include <iostream>

When I do this in a fresh workspace, it works fine.
I do have a simple C/C++ project that has the problem you describe, so try creating a fresh workspace and see if a fresh hello project in there works ok.

In the good hello project, the properties of the hello project, under C/C++ Build,
show
Build Variables
Discovery Options
...

In the bad project, the properties of the hello project do not have
a C/C++ Build folder; instead, it has top level folders C/C++ General,
C/C++ Include Paths, C/C++ Make Project, and C/C++ Project Paths.
I can't quite figure out why they're different. (Hmm. It's possible
the bad project was generated with cmake.)

[Updated on: Tue, 20 December 2011 23:30]

Report message to a moderator

Previous Topic:What is the output file extension for builds (Indigo running on a MAC)?
Next Topic:build project outside Eclipse
Goto Forum:
  


Current Time: Tue Sep 30 10:27:13 GMT 2014

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

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