LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2009, 06:05 PM   #1
PeterUK
Member
 
Registered: May 2009
Posts: 277

Rep: Reputation: 16
Help with Eclipse ! I have installed but it is not compiling properly


I have installed Eclipse onto Debian and it open fine, I have read all regarding compiling I have made sure that all the package are install but it does not compile properly

Before jumping into code I would like to add that I have gone to the Terminal and Compile the file using g++ and it works. I don't know why eclipse that is using the g++ too is not working

This is the code I am trying to compile

Quote:
#include <iostream>
using namespace std;
int main()
{
cout << "!!!Hello World!!! << endl ;
return 0;
}
This is the error

Quote:
this is the error
Error (3 items)
endl was not declared in this scope
make:*** src/Try.o Error 1
cout was not declared in this scope
Warning (1 item)
iostrem: No such file or directorv
here is the make file
Quote:
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include src/subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: Try

# Tool invocations
Try: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C++ Linker'
g++ -o"Try" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '

# Other Targets
clean:
-$(RM) $(C_DEPS)$(CXX_DEPS)$(CPP_DEPS)$(OBJS)$(CC_DEPS)$(EXECUTABLES)$(C_UPPER_DEPS)$(C++_DEPS) Try
-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
This is the console display
Quote:
**** Build of configuration Debug for project Try ****

make all
Building file: ../src/Try.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Try.d" -MT"src/Try.d" -o"src/Try.o" "../src/Try.cpp"
../src/Try.cpp:9:20: warning: iostream: No such file or directory
../src/Try.cpp: In function 'int main()':
../src/Try.cpp:13: error: 'cout' was not declared in this scope
../src/Try.cpp:13: error: 'endl' was not declared in this scope

make: *** [src/Try.o] Error 1
Thank you in advance for your help
 
Old 07-01-2009, 11:15 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Does this help?
http://www.cis.upenn.edu/~matuszek/c...g-eclipse.html
cheers,
jdk
 
Old 07-02-2009, 10:52 AM   #3
PeterUK
Member
 
Registered: May 2009
Posts: 277

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jdkaye View Post
No really! that is for a Java project, if you see I am trying to use c++, never mind I try but the java option in the project menu does not appear

Regards,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Eclipse on Slackware 11 merchtemeagle Linux - Software 4 03-01-2007 09:38 AM
Is Java Installed Properly tahirghafoor Linux - Newbie 3 04-17-2006 08:48 AM
eclipse is not noticing that I have j2re already installed. blufire Linux - Software 1 07-18-2005 07:54 PM
You do not have PyGtk-2 properly installed flamah Linux - Newbie 5 01-06-2005 01:13 PM
font not installed properly mw55309 Linux - Newbie 0 08-14-2003 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration