Redj, There's still this thing here that when passing '-cc' to ecc, this merely tells it what to use as a "preprocessor". We could actually invoke 'cpp' (c preprocessor) instead as a default, and having a -cpp rather than -cc would probably be smarter. Also, having separate settings for the C preprocessor and the C compiler to actually compile the intermediate C files would be smart, which would likely solve this particular problem.
I'm not sure if tcc supports that like gcc? It invokes it with '-x c -E' to tell it to preprocess it as a C preprocessor. Now those include files are the same ones from mingw, are they? I'm not sure if it's tcc that's preprocessing the header file in a different manner, but you could see the output of both "gcc -x -c -E" and "tcc -x -c -E", and see where they differ and where the ecc compiler is detecting a syntax error... Now since we'll be using tcc for scripting stuff mostly, as a standalone thing, it's very unlikely that it's going to be using any include files at all. Sorry if this is getting off-topic on the mailing list, but I hope it serves to clarify redj's question if it doesn't answer it. Thanks guys. Cheers, Jerome On Wed, Jun 17, 2009 at 8:01 PM, Réjean Loyer<[email protected]> wrote: > Hi all, grischka > thank you for your assistance, you guys are indeed amazing. > I am updating the IDE and compile tools to allow use of tcc instead of gcc > and I'm still having difficulty with compiling files that have #include > <...> preprocessor directives. > grischka, I was wondering if you were indeed able to compile the IDE using > tcc? > I am using the snapshot > (http://repo.or.cz/w/tinycc.git?a=snapshot;h=541237934767b107247dedab45cece2b37ed981d;sf=tgz) > from your last commit > (http://repo.or.cz/w/tinycc.git?a=commit;h=541237934767b107247dedab45cece2b37ed981d) > to compile tcc and I have tried your ecere patch as well as my own > modification that are mostly equivalent. The good news is that mostly all > samples can be compiled using tcc. It's rather great news in fact, thanks > again. > grischka, if you did in fact compile the IDE, did you encounter any problems > with process.ec? see the attached file for my process.ec compilation > results. > your help is greatly appreciated. > --- redj > On Wed, Jun 17, 2009 at 10:45 AM, grischka <[email protected]> wrote: >> >> I've put the changes from the patch (plus one more) on our "mob" >> branch: >> >> http://repo.or.cz/w/tinycc.git?a=shortlog;h=refs/heads/mob >> >> I won't include __WIN32__ into master later, because it should >> be just _WIN32, IMO. >> >> As always, everyone can contribute to our "mob" patchwork using >> git push ssh://[email protected]/srv/git/tinycc.git my-mob:mob >> anytime. >> >> --- grischka >> >> >> >> _______________________________________________ >> Tinycc-devel mailing list >> [email protected] >> http://lists.nongnu.org/mailman/listinfo/tinycc-devel > > > _______________________________________________ > Tinycc-devel mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/tinycc-devel > > _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
