Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Ian Henriksen
On Mon, Apr 11, 2016 at 11:50 AM Ian Henriksen < insertinterestingnameh...@gmail.com> wrote: > To answer the original question about define macros, it appears that the > canonical > way to pass preprocessor defines through distutils is to use the > define_macros > keyword when constructing your Ex

Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Ian Henriksen
On Mon, Apr 11, 2016 at 7:46 AM Erik Bray wrote: > On Mon, Apr 11, 2016 at 2:51 PM, Nathaniel Smith wrote: > > On Apr 11, 2016 04:18, "Erik Bray" wrote: > >> > >> On Fri, Apr 8, 2016 at 5:49 PM, Nathaniel Smith wrote: > >> > Can you give a tiny concrete example? My questions are basic enough >

Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Jeroen Demeyer
On 2016-04-11 15:23, Erik Bray wrote: In this case I really do want the symbol "hello" to be exported by the DLL, as well as be understood between translation units making up the same library. Are you really sure that you want this? I doubt that this is supported on OS X: on OS X, there are tw

Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Nathaniel Smith
On Apr 11, 2016 06:23, "Erik Bray" wrote: > > On Mon, Apr 11, 2016 at 2:51 PM, Nathaniel Smith wrote: > > Now, back to your example: Here the caller and callee are both compiled into > > the same shared library, so you don't want dllexport/dllimport at all, you > > just want a shared-library-inte

Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Erik Bray
On Mon, Apr 11, 2016 at 2:51 PM, Nathaniel Smith wrote: > On Apr 11, 2016 04:18, "Erik Bray" wrote: >> >> On Fri, Apr 8, 2016 at 5:49 PM, Nathaniel Smith wrote: >> > Can you give a tiny concrete example? My questions are basic enough that >> > I >> > feel like I'm missing something fundamental :

Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Erik Bray
On Mon, Apr 11, 2016 at 2:51 PM, Nathaniel Smith wrote: > Now, back to your example: Here the caller and callee are both compiled into > the same shared library, so you don't want dllexport/dllimport at all, you > just want a shared-library-internal symbol, which as we see is much easier. Sorry,

Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Nathaniel Smith
On Apr 11, 2016 04:18, "Erik Bray" wrote: > > On Fri, Apr 8, 2016 at 5:49 PM, Nathaniel Smith wrote: > > Can you give a tiny concrete example? My questions are basic enough that I > > feel like I'm missing something fundamental :-) > > Yes, I think you might be missing something, but I'm not sure

Re: [Cython] Fwd: Question about how best require compiler options for C sources

2016-04-11 Thread Erik Bray
On Fri, Apr 8, 2016 at 5:49 PM, Nathaniel Smith wrote: > Can you give a tiny concrete example? My questions are basic enough that I > feel like I'm missing something fundamental :-) Yes, I think you might be missing something, but I'm not sure exactly where. In the issue I provided a tiny exampl