#13336: farey_symbol.pyx fails to build on Cygwin
---------------------------+------------------------------------------------
       Reporter:  jpflori  |         Owner:  tbd     
           Type:  defect   |        Status:  new     
       Priority:  major    |     Milestone:  sage-5.3
      Component:  cygwin   |    Resolution:          
       Keywords:           |   Work issues:          
Report Upstream:  N/A      |     Reviewers:          
        Authors:           |     Merged in:          
   Dependencies:           |      Stopgaps:          
---------------------------+------------------------------------------------

Comment (by jpflori):

 Replying to [comment:2 jpflori]:
 > I think the problem is as follows:
 > As convert_* are declared extern in farey_symbol.h (from the public
 modifier in farey_symbol.pyx) g++ adds _ _ imp _ _ prefixes in farey.o.
 > Then if you actually build a dll of farey_symbol.cpp alone and link a
 dll of farey.o alone to it ld is fine.
 > But when you want to directly link farey_symbol.o and farey.o together,
 ld whines...

 This seems to be the problem.
 If you remove the DL_IMPORT lines in farey_symbol.h (generated by Cython),
 you'll link correctly.

 I've got some ideas from here:
 http://stackoverflow.com/questions/3704374/linking-error-lnk2019-in-msvc-
 unresolved-symbols-with-imp-prefix-but-shoul

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13336#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to