This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: strange compiler error with division operation


>Dear Mr.peter:
> I changed the command line to :
> $(CC) -Wl, -T lcf/burnExtRom.lnk $(objects) -o image/hiwd -Wl,-Map 
>image/mapfile
>
>But I got the error: 
>/usr/local/lib/gcc-lib/powerpc-eabi/3.3.2/../../../../powerpc-eabi/bin/ld: 
>cannt open : No such file or directory

You are trying to pass the linker a parameter using '-Wl,', but
the trailing space will cause the linker to have a null string as a
parameter, so the linker is attempeting to open a file who'ss name is
"", so I don't think that is going to work for you.

Perhaps you meant -Wl,-T,lcf/burnExtRom.lnk -Wl,-Map,image/mapfile
(note the lack of spaces between the parameters after the -Wl,).

-- 
Peter Barada
peter@the-baradas.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]