質問編集履歴
1
修正
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:\
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
また、動かしたいプログラムを以下に示します
|