質問するログイン新規登録

質問編集履歴

1

修正

2017/07/12 08:49

投稿

kohekoh
kohekoh

スコア140

title CHANGED
File without changes
body CHANGED
@@ -6,14 +6,30 @@
6
6
  開発環境はanaconda python3.6.1 windows10です
7
7
 
8
8
  ```python
9
+ python setup.py build_ext --inplace
9
10
 
11
+ -------------------------------------------------------
12
+ 実行結果
13
+
10
14
  running build_ext
11
15
  skipping 'cythonfn.c' Cython extension (up-to-date)
12
16
  building 'calculate' extension
13
- C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Users\AppData\Local\conda\conda\envs\anaconda\include" "-IC:\Users\kohei nishimuta\AppData\Local\conda\conda\envs\anaconda\include" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tccythonfn.c /Fobuild\temp.win-amd64-3.6\Release\cythonfn.obj
14
- cythonfn.c
15
- c:\users\appdata\local\conda\conda\envs\anaconda\include\pyconfig.h(222): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
16
- error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
17
+ C:\MinGW\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 "-IC:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\include" "-IC:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\include" -c cythonfn.c -o build\temp.win-amd64-3.6\Release\cythonfn.o
18
+ In file included from C:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\include/Python.h:65:0,
19
+ from cythonfn.c:4:
20
+ C:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\include/pytime.h:112:5: warning: 'struct timeval' declared inside parameter list
21
+ _PyTime_round_t round);
22
+ ^
23
+ C:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\include/pytime.h:112:5: warning: its scope is only this definition or declaration, which is probably not what you want
24
+ C:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\include/pytime.h:117:5: warning: 'struct timeval' declared inside parameter list
25
+ _PyTime_round_t round);
26
+ ^
27
+ writing build\temp.win-amd64-3.6\Release\calculate.cp36-win_amd64.def
28
+ C:\MinGW\bin\gcc.exe -shared -s build\temp.win-amd64-3.6\Release\cythonfn.o build\temp.win-amd64-3.6\Release\calculate.cp36-win_amd64.def "-LC:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\libs" "-LC:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\PCbuild\amd64" -lpython36 -lmsvcr140 -o "C:\Users\ユーザ名\Dropbox\prg\make_tips\calculate.cp36-win_amd64.pyd"
29
+ c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: C:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\libs/python36.lib(python36.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
30
+ C:\Users\ユーザ名\AppData\Local\conda\conda\envs\anaconda\libs/python36.lib: error adding symbols: File format not recognized
31
+ collect2.exe: error: ld returned 1 exit status
32
+ error: command 'C:\\MinGW\\bin\\gcc.exe' failed with exit status 1
17
33
 
18
34
  ```
19
35
  また、動かしたいプログラムを以下に示します