[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.cdt] Re: Error compiling
|
Never mind. I found another error in the file and it may be the answer.
-as
Arturo Servin wrote:
> Hello,
>
> I am trying to compile a c++ file and a header file. The c++ and the
> header are in the same project. If I compile it on Eclipse it display
> the following error:
>
> GNU assembler version 2.17 (i486-linux-gnu) using BFD version 2.17
> Debian GNU/Linux
> /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function
> `_start':
> (.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status
> make: *** [Tiles] Error 1
> make: Target `all' not remade because of errors.
> Build complete for project Tiles
>
> I know that the program is ok because I compile it outside eclipse with
> g++ and it produces the output file with no problem. The messages in
> with the -v option are the same with g++ without eclipse and with
> eclipse until the GNU assembler, in outside of eclipse it just work and
> inside of eclipse it send the previous error.
>
> I have already check the properties to compile and they are the same
> than a previous test that I made (a "helloword" file). The path of the
> libraries seems ok, etc.
>
> I imagine it is a silly solution but I am kind of new in c++ with eclipse.
>
> Thanks,
> -as