Wolfgang Frotten
2005-Jul-19 01:32 UTC
[Speex-dev] Re: Problems to compile speex 1.1.10 on windows
And what are these "only minor tweaks" to force the compiler to accept the C casts? Is someone here who can give me these options? The system of options for gcc (which is integrated in dev-c++) is very complex for someone like me who is a delphi but not a c expert.
Jean-Marc Valin
2005-Jul-19 08:18 UTC
[Speex-dev] Re: Problems to compile speex 1.1.10 on windows
The "minor tweaks" is adding casts to the right thing. For example, if the compiler complainds you can't cast a (void*) to an (int*), then explicitly add a (int*). Jean-Marc Le mardi 19 juillet 2005 ? 08:31 +0000, Wolfgang Frotten a ?crit :> And what are these "only minor tweaks" to force the compiler to accept the C > casts? Is someone here who can give me these options? The system of options for > gcc (which is integrated in dev-c++) is very complex for someone like me who is > a delphi but not a c expert. > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >-- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbrooke
Wolfgang Frotten
2005-Jul-19 09:44 UTC
[Speex-dev] Re: Problems to compile speex 1.1.10 on windows
> The "minor tweaks" is adding casts to the right thing. For example, if > the compiler complainds you can't cast a (void*) to an (int*), then > explicitly add a (int*). > Jean-MarcThank you very much for your hints. But i walked in this direction during the last three days. I have found the following solution and i think it is more comfortable for delphi coders :O) -> - add "#define restrict" into the unit where the compiler reclaims a syntax problem - Open a project in dev-c++ as C-Project, (not as C++-Project!!!) and you will not run into problems with casts - set project-options/build-options/folder-for-object-files to a separate folder e.g. "libspeex\obj" and the linker will not have problems with "undefined references" Hey, it works now! My impression is that the speek quality sounds a little bit better. Can that be true? But I have still going on a lot of buffer overflows :O) but this is another problem in another thread (perharps). Thank you again Wolfgang