advan wrote:
hi,everyone,
I wrote a testing routine in linux in order to test gcc compiled link symbol ## in macro , gcc version under 3.2.2(3.2.2 and 2.9.5) was able to compile this routine ,only with waring . but I used gcc-3.3.2 and gcc-4.1.1 to compile it ,it wasn't be compiled successfully .

#define LINK_TABLE(type,name) {type, sizeof(Test_s##.##name), (u8*)&(Test_s##.##name)}

## is only needed, and should only be used for, pasting tokens that will create a new token. so you don't need to use it here.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
[EMAIL PROTECTED]    ::     http://www.planetfall.pwp.blueyonder.co.uk

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to