Results 1 to 2 of 2

Thread: eclipse cdt build error

  1. #1
    Join Date
    Jan 2013

    eclipse cdt build error

    help...i am a newbie and trying to build and compile c projects in eclipse indigo using the cdt plugin.i first make a new c project aloisi then make a new source file lol.c and on the console i get the following output
    **** Build of configuration Debug for project aloisi ****

    make all
    Building target: aloisi
    Invoking: GCC C Linker
    gcc -o "aloisi" ./lol.o
    /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':
    (.text+0x18): undefined reference to `main'
    collect2: ld returned 1 exit status
    make: *** [aloisi] Error 1

    **** Build Finished ****

    the errors specified are:
    Description Resource Type
    make: *** [aloisi] Error 1 aloisi C/C++ Problem
    undefined reference to `main' aloisi C/C++ Problem

    in the project explorer no binaries are getting displayed from which i can run
    and only displayes includes lol.c and debug which contains lol.o,lol.d,makefile,,,subdir. mk

  2. #2
    Join Date
    Jan 2013

    Re: eclipse cdt build error

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts