bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined reference to `main'


From: Hans-Bernhard Broeker
Subject: Re: undefined reference to `main'
Date: 2 May 2002 12:28:38 GMT

David Meggy <address@hidden> wrote:
> Now if I run:

> arm-linux-objdump -d dix/libdix.a | grep main

That's not the test you should be running.  Try this instead:

        arm-linux-nm dix/libdix.a | grep -i main

and see if you get a line with a 'T' in the second column, roughly
like this (from an i386-coff example):

0000000000000008 T _main

The 'main' you found in the disassembly may not be a globally exported
function (which is what that 'T' stands for).
-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]