[pylucene-dev] jcc/pylucene gcc warnings

Andi Vajda vajda at osafoundation.org
Sat Mar 22 01:16:15 PDT 2008


On Mar 22, 2008, at 0:40, "Alexandre Fiori" <fiorix at gmail.com> wrote:

>
> While compiling jcc and pylucene 2.3.1 on ubuntu gutsy 7.10 (gcc  
> 4.1.3 20070929) it drops the following:
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid  
> for Ada/C/ObjC but not for C++
>
> Although there's no side effect on the generated code, I suggest  
> removing that from mainstream just to avoid such ugly warnings.

This flag comes from python itself. Distutils, or Setuptools when  
installed, invokes the C++ compiler with the C compiler flags that  
Python itself was built with. This is where most of the C extension  
build magic is coming from.
When using C++, there are some issues like the one you reported. C is  
compatible with C++, but that doesn't imply the compilers are.

Andi..


>
>
> -- 
> Ship ahoy! Hast seen the While Whale?
> - Melville's Captain Ahab
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


More information about the pylucene-dev mailing list