[Live-devel] getting link time errors while building for arm.linux
Ross Finlayson
finlayson at live555.com
Wed Jun 6 23:13:41 PDT 2007
>I am getting lot of undefined reference errors when I am cross
>compiling the code for arm architecture, following are some errors. I am
>using uclibc
>Tool chain.
>
>make[1]: Entering directory `/home/ravinder/rtsp/live_arm/testProgs'
>arm-linux-gcc -otestMP3Streamer -L. testMP3Streamer.o
>../liveMedia/libliveMedia.a ../groupsock/libgroupsock.a
>../UsageEnvironment/libUsageEnvironment.a
>../BasicUsageEnvironment/libBasicUsageEnvironment.a
>testMP3Streamer.o: In function `main':
>testMP3Streamer.cpp:(.text+0x140): undefined reference to `operator
>new(unsigned int)'
The problem is that you're not linking with the C++ runtime libraries.
Try changing the definition of LINK in "config.armlinux" from
$(CROSS_COMPILE)gcc -o
to
$(CROSS_COMPILE)g++ -o
Perhaps that might help.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list