Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » make: *** [main.o] Error 1
make: *** [main.o] Error 1 [message #1228199] Mon, 06 January 2014 16:35 Go to next message
Ajit Nair is currently offline Ajit NairFriend
Messages: 1
Registered: January 2014
Junior Member
I saw few threads which was equivalent to my error, but i was unable to understand it clearly. As i am new to C++ and eclipse can any one explain, why this error had occured
and my console showed as below before showing error

21:16:21 **** Incremental Build of configuration Debug for project d ****
make all
Building file: ../main.C
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0-std=c++11 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.C"
g++: error: argument to '-fmessage-length=' should be a non-negative integer
make: *** [main.o] Error 1


Re: make: *** [main.o] Error 1 [message #1228399 is a reply to message #1228199] Tue, 07 January 2014 06:12 Go to previous message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 180
Registered: July 2009
Senior Member
On 06-01-14 19:24, Ajit Nair wrote:
> I saw few threads which was equivalent to my error, but i was unable to
> understand it clearly. As i am new to C++ and eclipse can any one
> explain, why this error had occured
> and my console showed as below before showing error
>
> 21:16:21 **** Incremental Build of configuration Debug for project d ****
> make all Building file: ../main.C
> Invoking: GCC C++ Compiler
> g++ -O0 -g3 -Wall -c -fmessage-length=0-std=c++11 -MMD -MP -MF"main.d"
> -MT"main.d" -o "main.o" "../main.C"
> g++: error: argument to '-fmessage-length=' should be a non-negative
> integer
> make: *** [main.o] Error 1
You forgot to put a space between the "0" from -fmessage-length=0 and
the "-" from -std=c++11 . As per error message


Joost
Previous Topic:Building a cross-compile library (compile but not link?)
Next Topic:Missing "Run" Menu/Toolbar
Goto Forum:
  


Current Time: Tue Nov 25 21:20:26 GMT 2014

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

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