Wolfgang Frotten
2005-Jul-18 11:22 UTC
[Speex-dev] Problems to compile speex 1.1.10 on windows
I am a delphi coder and i have successfully compiled version 1.0.5 to use the resulting dll in John Villars Delphi-Example with Bloodsheds dev-c++. With the stable version 1.0.5 it works fine but on my slow computer with 900Mz I have a lot of buffer overflows. Therefore I should like to create a dll with version 1.1.10 because it should be faster but i run into a lot of problems. I am not experienced with c++ and I use dev-c++ for compiling. The main errors relate to type conversions e.g. you cannot convert void* to float* without a cast. It may be that the code was originally compiled with a plain C compiler instead of C++, in which case it would have probably worked, depending on the compiler's tolerance to other casts like "short int" from "float". I have added casts wherever a non-cast conversion is attempted and then compilation was successfully but linker reclaims a lot of undefined references e.g. "C:/Programme/Dev-Cpp/Examples/hr/speex-1.1.10/libspeex/modes.c:722: undefined reference to `gain_cdbk_nb'" My question is, what could be a good free(!) C-Compiler under windows for Speex 1.1.10 or better (that would be nice) what should i do to compile the sources with dev-c++ successfully? Has someone collect experiences with compiling version 1.1.10 under windows with a free C-Compiler?
Jean-Marc Valin
2005-Jul-18 12:40 UTC
[Speex-dev] Problems to compile speex 1.1.10 on windows
Why not use gcc? You can get either mingw or cygwin. Otherwise I don't know. Speex should compile with a C++ compiler with only minor tweaks (forcing the compiler to accept the C casts). Jean-Marc Le lundi 18 juillet 2005 ? 17:55 +0000, Wolfgang Frotten a ?crit :> I am a delphi coder and i have successfully compiled version 1.0.5 to use the > resulting dll in John Villars Delphi-Example with Bloodsheds dev-c++. With the > stable version 1.0.5 it works fine but on my slow computer with 900Mz I have a > lot of buffer overflows. Therefore I should like to create a dll with version > 1.1.10 because it should be faster but i run into a lot of problems. I am not > experienced with c++ and I use dev-c++ for compiling. > > The main errors relate to type conversions e.g. you cannot convert void* to > float* without a cast. It may be that the code was originally compiled with a > plain C compiler instead of C++, in which case it would have probably worked, > depending on the compiler's tolerance to other casts like "short int" from > "float". I have added casts wherever a non-cast conversion is attempted and > then compilation was successfully but linker reclaims a lot of undefined > references e.g. > "C:/Programme/Dev-Cpp/Examples/hr/speex-1.1.10/libspeex/modes.c:722: undefined > reference to `gain_cdbk_nb'" > > My question is, what could be a good free(!) C-Compiler under windows for Speex > 1.1.10 or better (that would be nice) what should i do to compile the sources > with dev-c++ successfully? Has someone collect experiences with compiling > version 1.1.10 under windows with a free C-Compiler? > > > > _______________________________________________ > 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 01:41 UTC
[Speex-dev] Re: Problems to compile speex 1.1.10 on windows
Jean-Marc Valin <Jean-Marc.Valin <at> USherbrooke.ca> writes:> > Why not use gcc? You can get either mingw or cygwin. Otherwise I don't > know. Speex should compile with a C++ compiler with only minor tweaks > (forcing the compiler to accept the C casts). > > Jean-Marc >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. Wolfgang (Sorry, please ignore the displaced posting at the bottom)