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

Re: [arm-gnu] undefined reference to `_impure_ptr'


  • To: Zenoname <zenonamemail@xxxxxxxxx>
  • Subject: Re: [arm-gnu] undefined reference to `_impure_ptr'
  • From: Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
  • Date: Wed, 23 Jun 2010 10:52:06 -0400

On 23/06/10 10:47 AM, Zenoname wrote:
Sorry no still the same error

On 6/23/10 4:43 PM, Carlos O'Donell wrote:
On 23/06/10 08:59 AM, Zenoname wrote:
int main(int argc,char** argv) { return 0; }
arm-none-linux-gnueabi-gcc myDemo.c -o myDemo -L../../lib -lmylib
-lstdc++ -Wl,-Map,linkermap.txt

If this is a C++ or mixed C/C++ application then link your application
with g++ and do not use -lstdc++ e.g.

arm-none-linux-gnueabi-g++ myDemo.c -o myDemo -L../../lib -lmylib
-Wl,-Map,linkermap.txt

Does that solve your problem?

We need a complete test case then e.g. all objects used in the link, link command, and if possible source.

Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@xxxxxxxxxxxxxxxx
(650) 331-3385 x716