Click here to Skip to main content
15,909,530 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear friends this is my code.
C++
#include <iostream>
using namespace std;

int main()
{
	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}


but when i build it
the following error i got.


**** Build of configuration Debug for project EventLog_Test ****

make all 
Building file: ../src/EventLog_Test.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/EventLog_Test.d" -MT"src/EventLog_Test.d" -o "src/EventLog_Test.o" "../src/EventLog_Test.cpp"
Finished building: ../src/EventLog_Test.cpp
 
Building target: EventLog_Test
Invoking: GCC C++ Linker
g++  -o "EventLog_Test"  ./src/EventLog_Test.o   
--build-id: unknown option
collect2: ld returned 1 exit status
make: *** [EventLog_Test] Error 1

**** Build Finished ****


how can i resolve this error...?
Posted
Updated 3-Jan-12 2:29am
v2
Comments
Maximilien 3-Jan-12 8:44am    
How is the makefile created ?
From a quick google, it would seems that if the compiler/linker does not support the "--build-id" option it will generate warning.

1 solution

--build-id is a ld's emulation specific option.
I guess you have to remove that from your makefile.
 
Share this answer
 
Comments
prince_rumeel 4-Jan-12 0:04am    
so help out me that how can i unremove that option.
i m using eclips
CPallini 4-Jan-12 3:21am    
This is an Eclipse thing (I'm not an Eclipse expert).
You may ask at an Eclipse forum.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900