On Sat, May 18, 2013 at 11:22 AM, 杨雪峰 <
yyx...@gmail.com> wrote:
> I follow the instruction from
>
http://wiki.cython.org/64BitCythonExtensionsOnWindows try to use windows c
> compiler to build python extension. but cython are still using mingw gcc to
> compile my files which cause many undefined reference errors.
It seems you have a Python binary set up for mingw (Anaconda or
Enthought?). Anyway, you can specify the compiler to use on the
command line:
setup.py build_ext --compiler=mingw32
(not sure what the MS compiler is called, though -- I don't have
Windows up at the moment)
or in disutils config files:
http://docs.python.org/2/install/#inst-config-files
HTH,
-Chris
> it became green words after i command setenv /x64 /release
>
> C:\Users\Yang
> Xuefeng\Dropbox\workspaces\pythonxy\autoencoders\Cythonlearning\te st>python
> setup.py build_ext running build_ext skipping 'helloworld.c' Cython
> extension (up-to-date) building 'helloworld' extension C:\MinGW\bin\gcc.exe
> -DMS_WIN64 -mdll -O -Wall -IC:\Anaconda\include -IC:\Anacon da\PC -c
> helloworld.c -o build\temp.win-amd64-2.7\Release\helloworld.o writing
> build\temp.win-amd64-2.7\Release\helloworld.def C:\MinGW\bin\gcc.exe
> -DMS_WIN64 -shared -s build\temp.win-amd64-2.7\Release\hell oworld.o
> build\temp.win-amd64-2.7\Release\helloworld.def -LC:\Anaconda\libs -LC:
> \Anaconda\PCbuild\amd64 -lpython27 -lmsvcr90 -o
> build\lib.win-amd64-2.7\hellowor ld.pyd
> build\temp.win-amd64-2.7\Release\helloworld.o:helloworld.c:(.text+0x85):
> undefin ed reference to `_imp__PyOS_snprintf'
>
> please , help me !
>
>
> regards
>
> Yang Xuefeng
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "cython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
cython-users...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R
(206) 526-6959 voice
7600 Sand Point Way NE
(206) 526-6329 fax
Seattle, WA 98115
(206) 526-6317 main reception
Chris....@noaa.gov