[NumPy-Tickets] [NumPy] #2104: Link option missing ?

NumPy Trac numpy-tickets@scipy....
Thu Apr 12 10:06:51 CDT 2012

#2104: Link option  missing ?
 Reporter:  medernac  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  1.6.1      
 Keywords:            |  

 I tried to use f2py like this:
 f2py -c -m dpolft dpolft.f

 and obtain this error:
 undefined reference to `MAIN__'

 It appears that some arguments are missing when linking the dpolft.so
 shared object.

 I have modified this file:


         # 'linker_so'    : [None, "-g", "-Wall"],
         'linker_so'    : [None, "-g", "-shared -fPIC -Wall"],

 and now it compiles.

 Hope this helps.

 Best regards,
 Emmanuel Medernach

Ticket URL: <http://projects.scipy.org/numpy/ticket/2104>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list