LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   undefined reference to main () ?. (https://www.linuxquestions.org/questions/linux-newbie-8/undefined-reference-to-main-518309/)

rameshs 01-11-2007 05:43 AM

undefined reference to main () ?.
 
I am using armlinux tool. when I compile my main program, it shows the following error.

what is he actual problem.

[error]
In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [athdev] Error 1

[/error]


whats my problem .

Broder 01-11-2007 06:09 AM

Do you have your compiler and libraries installed?

Guttorm 01-11-2007 06:49 AM

Hi

To me it looks like the program lacks a function called main.

Ynot Irucrem 01-11-2007 06:29 PM

Quote:

my main program
So this is something you wrote yourself? If so can you post the code? Otherwise, email the developer of that software.


All times are GMT -5. The time now is 11:23 PM.