Skip to main content



      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] Sun, 27 November 2011 19:49 Go to next message
Eclipse UserFriend
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 15:05 Go to previous messageGo to next message
Eclipse UserFriend
Same problem with Eclipse Indigo on Ubuntu 11.10...
Please help.

[Updated on: Sat, 10 December 2011 15:06] by Moderator

Re: includes and unresolved symbols problem on ubuntu [message #764522 is a reply to message #763879] Mon, 12 December 2011 05:51 Go to previous messageGo to next message
Eclipse UserFriend
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/
Re: includes and unresolved symbols problem on ubuntu [message #764747 is a reply to message #764522] Mon, 12 December 2011 14:29 Go to previous messageGo to next message
Eclipse UserFriend
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 03:55 Go to previous messageGo to next message
Eclipse UserFriend
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 &


Re: includes and unresolved symbols problem on ubuntu [message #765828 is a reply to message #765008] Wed, 14 December 2011 13:37 Go to previous messageGo to next message
Eclipse UserFriend
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 04:05 Go to previous messageGo to next message
Eclipse UserFriend
https://hudson.eclipse.org/hudson/job/cdt-nightly/lastSuccessfulBuild/
To run the script [message #767003 is a reply to message #759241] Fri, 16 December 2011 15:41 Go to previous messageGo to next message
Eclipse UserFriend
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 05:17 Go to previous messageGo to next message
Eclipse UserFriend
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 18:21 Go to previous message
Eclipse UserFriend
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 18:30] by 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: Fri Jul 18 17:02:42 EDT 2025

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

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

Back to the top