Thorsten Haude wrote:

I just tried, NEdit breaks hard on GCC's -std=iso9899:1990.

I forget the right way of doing this. I never worry because I always compile with non-gcc compilers and that finds non-gcc'isms the fastest!

I think that switch you used imples -ansi which removes GNU extensions (good) but also all non-ANSI C functions (bad). Nedit is a Unix program and shearing off Unix doesn't work so well!

One would think there would be a way to tell gcc "I want everything by default, except GNU C extensions, because I intend to compile with another compiler". (Of course they don't make this easy!)

You want to disable GCC's extensions but not other standards such as POSIX, XPG, etc. I'm not sure if there's an easy way of doing it. It's probably something like -ansi -D_POSIX_SOURCE=1 (among other things).

I have this somewhere, I'll have to dig it out next week.


--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to