unreferenced main in embedded source code

Cedric Roux cedric.roux@acri-st.fr
Wed Apr 20 08:55:00 GMT 2011


On 04/20/2011 10:38 AM, domenico margiotta wrote:
> codewarrior compiler don't detect every warning and so the client said
> to use a gcc -Wall and lint command.

> -Wall, i reached the error for "undefined reference to `main' ".

try gcc -Wall -c you_file.c
I bet you don't really care about the output and just care about
gcc's warnings. If I bet wrong, might be the wrong solution...



More information about the Gcc-help mailing list