Partial Link

Perry Smith pedz@easesoftware.com
Tue Nov 7 15:00:00 GMT 2006


On Nov 7, 2006, at 8:54 AM, Perry Smith wrote:

> On Nov 7, 2006, at 8:46 AM, Guillaume Gros wrote:
>
>> I used ld -r -o dvbdrv_inf.o audio.o video.o demux.o
>> then
>> powerpc-405-linux-gnu-g++ -Wall -O3 -mcpu=405 -msoft-float - 
>> mmultiple -mstring -pipe -l pthread -o myprog main.o config.o  
>> ecm.o dvbdrv_inf/dvbdrv_inf.o
>>
>> I am wondering if it is related to the fact that I use g++ ??  
>> Because the other app using this driver uses gcc
>
> Have you tried not doing the partial link and just do a regular  
> link, debug that, then go back and try doing the partial link if  
> there is some advantage of it for you?

Also, in your C++ code, how did you declare "somefunc"?  If it is a C  
function, you will likely need to do:

extern "C" int somefunc(int);

in your C++ program.

Hope this helps,
Perry Smith
Ease Software, Inc.
pedz@easesoftware.com
http://www.easesoftware.com

SATA Products for IBMs RS/6000, pSeries, and AIX systems





More information about the Gcc-help mailing list