News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

how to build project into seperated section

Started by jeorama, June 13, 2010, 02:01:00 PM

Previous topic - Next topic

jeorama

I use a link file as below,it is ok in keil,but in codeblock,there are always errors "multiple definition of `XXXX' ":

SECTIONS
{
       . = 0xD8000000;
       __start_ipl_startup = .;
       .iplsec1 : { ipl_startup.o ipl_startup2.o(.text .rodata .data .bss) }
       __end_ipl_startup = .;

       . = 0xA0000200;
       __start_ipl_main = .;
       .iplsec2 : { mxc_ipl.o mx27nfc.o (.text .rodata .data .bss) }
       __end_ipl_main = .;

       . = 0xA1000000;
       __start_spl_main = .;
       .spl : {spl_boot.o nand_driver.o spl_jump.o(.text .rodata .data .bss) }
       __end_spl_main = .;
}


oh, it is due the compiler which I changed from arm gcc to codesourcery gcc, the later accept  *ipl_startup.o  .... instead of  ipl_startup.o....

oBFusCATed

Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

And please next time give us a bit more info, because we don't know your work environment at all...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]