Forums

linker error

Started by amr090 June 16, 2004
i am trying to compile my code which controls a stepper motor and I 
get the following linker error, and I have no idea what it means or 
how i would fix it.  it compiles f ine but just has problems linking.

Building configuration: StepperProject - Debug
Linking
Error[e46]: Undefined external "main" referred in ?cstartup ( 
C:\Program Files\IAR Systems\
Embedded Workbench 3.2\430\lib\cl430f.r43 )


any help would be appreciated, i apologize if this question is too 
basic.


Beginning Microcontrollers with the MSP430

I think it's telling you all you need to know: you have no "main"
function.  If you're a C programmer, you'll know what "main" is.  If
you're an assembly code programmer and writing in assembly code, you're
linking the C startup code into your project, which smells mighty wrong.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for MSP430, ARM, and (soon) Atmel AVR processors 

> -----Original Message-----
> From: amr090 [mailto:amr090@amr0...] 
> Sent: 16 June 2004 16:37
> To: msp430@msp4...
> Subject: [msp430] linker error
> 
> 
> i am trying to compile my code which controls a stepper motor and I 
> get the following linker error, and I have no idea what it means or 
> how i would fix it.  it compiles f ine but just has problems linking.
> 
> Building configuration: StepperProject - Debug
> Linking
> Error[e46]: Undefined external "main" referred in ?cstartup ( 
> C:\Program Files\IAR Systems\
> Embedded Workbench 3.2\430\lib\cl430f.r43 )
> 
> 
> any help would be appreciated, i apologize if this question is too 
> basic.
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> --------------------~--> 
> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free! 
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA> /CFFolB/TM
> 
> 
> --------------------------
> ------~-> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
>