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

NumPy Trac numpy-tickets@scipy....
Sat Apr 14 02:26:16 CDT 2012


#2104: Link option  missing ?
------------------------+---------------------------------------------------
 Reporter:  medernac    |       Owner:  pearu      
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.f2py  |     Version:  1.6.1      
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by rgommers):

  * owner:  somebody => pearu
  * component:  Other => numpy.f2py


Old description:

> Hello,
>
> 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:
> numpy/distutils/fcompiler/gnu.py
>
> with:
>
>         # 'linker_so'    : [None, "-g", "-Wall"],
>         'linker_so'    : [None, "-g", "-shared -fPIC -Wall"],
>
> and now it compiles.
>
> Hope this helps.
>
> Best regards,
> --
> Emmanuel Medernach

New description:

 Hello,

 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:
 numpy/distutils/fcompiler/gnu.py

 with:
 {{{
     # '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#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list