undefined reference to 'main'

Joel Sherrill joel.sherrill at oarcorp.com
Sat Oct 11 17:40:29 UTC 2014


How are you compiling this?

Is this with the git head?

--joel

On October 11, 2014 12:36:45 PM CDT, Brad Andrews <bandrews at activepower.com> wrote:
>Help,
>Getting "undefined reference to 'main' line 0, external
>location:/home/darb/development/icecube/powerpc-rtems4.11/icecube/lib/librtemscpu.a(dummy.o)
>
>/*
>* Simple test program -- simplified version of sample test hello.
>*/
>
>#include <bsp.h>
>#include <stdlib.h>
>#include <stdio.h>
>
>rtems_task Init(
>rtems_task_argument ignored
>)
>{
>printf( "\n\n*** HELLO WORLD TEST ***\n" );
>printf( "Hello World\n" );
>printf( "*** END OF HELLO WORLD TEST ***\n" );
>exit( 0 );
>}
>
>/* configuration information */
>
>/* NOTICE: the clock driver is explicitly disabled */
>#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
>#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
>
>#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
>#define CONFIGURE_MAXIMUM_TASKS 1
>
>#define CONFIGURE_INIT
>#include <rtems/confdefs.h>
>/* end of file */
>
>
>_____________________________________________
>This email has been scanned for email related threats and delivered
>safely by Mimecast.
>For more information please visit http://www.mimecast.com
>_____________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20141011/80ac58ea/attachment-0002.html>


More information about the users mailing list