`
Joson_Coney
  • 浏览: 57840 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

【转】Compiling with cython and mingw produces gcc: error: unrecognized command lin

 
阅读更多

(From: http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o

 

 

 



@Ignacio Vazquez-Abrams, edited with the data. – joaquin May 17 '11 at 19:01
feedback


1 Answer


It sounds like GCC 4.7.0 has finally removed the deprecated -mno-cygwin option, but distutils has not yet caught up with it. Either install a slightly older version of MinGW, or edit distutils\cygwinccompiler.py in your Python directory to remove all instances of -mno-cygwin .


2  
Thanks Ignacio. I already tried this solution by myself (to eliminate -mno-cygwin from cygwinccompyler). The error disappeared but then I got a different error with ld. But this is a different question. I will post it tomorrow. Now need some rest... why is so difficult to compile in windows? – joaquin May 17 '11 at 20:54
4  
We are working on a patch for distutils: bugs.python.org/issue12641 – Éric Araujo Oct 7 '11 at 17:16
分享到:
评论

相关推荐

    MinGW gcc环境编译python(英文)

    ### MinGW gcc环境下编译Python知识点详解 #### 一、引言 在Windows系统下,如果想使用非Microsoft Visual C++的编译器来编译Python源码,这是一项具有挑战性的任务。本文将详细介绍如何利用MinGW gcc编译器在...

    编译DCNv2网络:error: command 'C:\\Program Files\\NVIDIAGPUComputingToolkit\\CUDA\\v1

    在构建和运行深度学习模型时,经常会遇到编译自定义层或库的问题,例如DCNv2(Dynamic Convolutional Network version 2)。这个错误信息提示我们遇到了与CUDA相关的编译问题,具体是命令行工具`nvcc.exe`无法执行。...

    OpenCV-MinGW-Build-OpenCV-3.3.1.zip

    # OpenCV-MinGW-Build MinGW version of OpenCV compiled on Windows. ## [OpenCV 3.4.1](https://github.com/huihut/OpenCV-MinGW-Build/tree/OpenCV-3.4.1) ``` git clone -b OpenCV-3.4.1 git@github....

    包含"stm32f10x_lib.h":等FWLib.rar

    ..\SYSTEM\sys\sys.h(3): error: #5: cannot open source input file "stm32f10x_lib.h": No such file or directory compiling delay.c... ..\SYSTEM\delay\delay.c(1): error: #5: cannot open source input file ...

    webservice WSDL 文档

    webservice WSDL 说明文档,适合初学者读懂wsdl信息

    An Introduction to GCC

    All the common problems and error messages encountered by new users of GCC are carefully explained, with numerous easy-to-follow "Hello World" examples. Topics covered include: compiling C and C++ ...

    Compiling with Continuations

    《使用延续的编译》这本书是由普林斯顿大学计算机科学系的Andrew W. Appel所著,并于1992年由剑桥大学出版社出版。本书深入探讨了延续传递风格(Continuation-passing style, 简称CPS)在编译过程中的应用及其相关...

    yasm-1.3.0.tar.gz

    sed -i 's#) ytasm.*#)#' Makefile.in: This sed prevents it compiling 2 programs (vsyasm and ytasm) that are only of use on Microsoft Windows. Contents Installed Program: yasm Installed Library: ...

    Arm板Apache+PHP环境搭建

    configure: error: cannot check for file existence when cross compiling的错误。 2. 需要添加ac_cv_func_setpgrp_void=yes选项,以避免出现checking whether setpgrp takes no argument... configure: error: ...

    Compiling... ,Error spawning cl.exe错误

    ### "Compiling..., Error spawning cl.exe" 错误解析与解决方案 #### 一、问题概述 在使用Visual C++ 6.0进行编程时,不少用户可能会遇到一个常见的错误:“Compiling..., Error spawning cl.exe”。当尝试编译或...

    mpv-i686-cross-compiling-MinGW32-Doc:Win32 的交叉编译 MPV 播放器(文档 + 版本)-开源

    该项目旨在在纯 Linux-32 位系统上设置 MinGW-w64 工具链以交叉编译 MPV 播放器。 文档可在 https://github.com/rboxeur/mpv-i686-cross-compiling-MinGW32-Doc/blob/master/index.rst 下载一些 mpv 版本

    视图切换问题

    Compiling... ControlTree.cpp e:\newpaintgraph\newpaintgraph\newpaintgraphview.h(23) : error C2143: syntax error : missing ';' before '*' e:\newpaintgraph\newpaintgraph\newpaintgraphview.h(23) : error ...

    vs6.0安装及运行 和解决 Compiling... error spawning cl.exe 的问题

    VS6.0 安装及运行解决 Compiling... error spawning cl.exe 问题 本文将详细介绍 VS6.0 的安装与运行过程,并解决 Compiling... error spawning cl.exe 问题,以便帮助初学者更好地理解和应用 VS6.0。 路径的概念 ...

    MFC视图切换问题(CTestDoc* GetDocument();)

    Compiling... SwichTree.cpp e:\test\testview.h(21) : error C2143: syntax error : missing ';' before '*' e:\test\testview.h(21) : error C2501: 'CTestDoc' : missing storage-class or type specifiers e:\...

    Problem Solving with C++ (7th edition)

    - **Setting Up the Development Environment**: Instructions on setting up an Integrated Development Environment (IDE) or a text editor with a command-line interface for compiling C++ programs. ...

    GCC的编译流程

    ### GCC的编译流程 GCC (GNU Compiler Collection) 是一种广泛使用的开源编译器套件,主要用于编译C、C++、Objective-C等语言。GCC的编译过程主要分为四个阶段:预处理、编译、汇编和链接。每个阶段都有其独特的...

    SDL2.08源码

    Windows with gcc, either native or cross-compiling: * Read the FAQ at https://wiki.libsdl.org/moin.fcg/FAQWindows * Run './configure; make; make install' Mac OS X with Xcode: * Read docs/README-...

    The Theory of Parsing, Translation, and Compiling

    Aho and Ullman - The Theory of Parsing, Translation, and Compiling - Vol. 1 (1972).djvu Aho and Ullman - The Theory of Parsing, Translation, and Compiling - Vol. 2 (1973).djvu

Global site tag (gtag.js) - Google Analytics