STL complex data types generate lots of warnings

7 views
Skip to first unread message

torr...@gmail.com

unread,
Aug 9, 2017, 6:02:44 AM8/9/17
to cython-users
Hi,

STL's complex numbers raise a lot of warnings for me. Simply importing them - from a *.pyx file containing only the following lines of code -, either like this

cimport cython
from libcpp.complex cimport complex


or like that


cimport cython
cimport libcpp
.complex
from libcpp.complex cimport *


and calling cython on that file, generates 50 or so warnings of this type


warning: PATH.../site-packages/Cython/Includes/libcpp/complex.pxd:43:20: Function signature does not match previous declaration

This happens on two different machines with Cython 0.26 and 0.23 running.

Importing other STL stuff, like vectors a.s.o. does not produce this.

Any help on what's wrong here, and how to fix it would be appreciated.

Xaver
Reply all
Reply to author
Forward
0 new messages