Ticket #80 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

raise error when function defined in pxd not in pyx

Reported by: robertwb Assigned to: somebody
Priority: major Milestone: 0.10
Component: Parsing Version:
Keywords: Cc:

Description

Right now, if you define a function in a pxd file but not in the
corresponding pyx file, Cython doesn't complain, and the error you get
(from gcc) looks like

/var/folders/Oh/Oh9hCPW1Grib+lCgJJ4+-k+++TI/-Tmp-//ccovTRcs.s:19785:non-relocatable
subtraction expression,
"___pyx_f_4sage_6groups_8perm_gps_9partn_ref_22canonical_augmentation_augmentation_is_canonical"
minus "L00000000014$pb"
/var/folders/Oh/Oh9hCPW1Grib+lCgJJ4+-k+++TI/-Tmp-//ccovTRcs.s:19785:symbol:
"___pyx_f_4sage_6groups_8perm_gps_9partn_ref_22canonical_augmentation_augmentation_is_canonical"
can't be undefined in a subtraction expression
error: command 'gcc' failed with exit status 1

I'm somewhat prone to make this mistake, and I was wondering if Cython
could complain before going to gcc.

Robert L. Miller

Change History

10/28/2008 06:14:37 PM changed by robertwb

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from wishlist to 0.9.8.2.