On Thursday, 12 בJuly 2007 20:14, David Harel wrote: > The code below works on VS but fails on gcc. Any idea? > ... > #define FULL_PATH(d,f) STRINGIT(d##/##f) > ... > ./test.c:12:1: error: pasting "root" and "/" does not give a valid > preprocessing token
You can read MS explanation in: http://msdn2.microsoft.com/en-us/library/09dwwt6y(VS.80).aspx "...The resulting token must be a valid token..." Or the more elaborate explanation by Delorie in: http://www.delorie.com/gnu/docs/gcc/cpp_18.html So this cannot be done because root/ is not a valid C token. If VS compiles this, than it's a bug on their part -- even with respect to their own docs ;-) -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron ICQ UIN: 16527398 First we take Manhattan , then we take Berlin...(Leonard Cohen). Linux and Open Source - The Revolution of Choice ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]