Code::Blocks Forums

User forums => Help => Topic started by: jeorama on June 13, 2010, 02:01:00 pm

Title: how to build project into seperated section
Post by: jeorama on June 13, 2010, 02:01:00 pm
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....
Title: Re: how to build project into seperated section
Post by: oBFusCATed on June 13, 2010, 02:39:23 pm
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...