Results 1 to 2 of 2

Thread: Cross Compile Help

  1. #1
    Join Date
    Jan 2010
    Beans
    111

    Cross Compile Help

    I'm new to cross compiling on linux using mingw, and basically all I want to do is get a program to compile for 64 bit windows (on 64 bit linux). The project that I'm trying to compile just has a stand-alone makefile; no configure or autogen, which makes this one slightly difficult. I already had installed mingw, so I just edited the following in the Makefile:
    CC = x86_64-w64-mingw32-gcc
    CXX = x86_64-w64-mingw32-g++

    and then ran "make". I thought everything would be perfect, until I got this 3/4th's of the way through:
    error: unrecognized option ‘-pthread'

    Can anyone help me with this error?
    Thanks.

  2. #2
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cross Compile Help

    It means that your program uses the Pthread library, which is a POSIX thing and is not available on Windows. So, unless your program provides a setting to disable multithreading at compile-time, you will not be able to compile, let alone run it on Windows.
    「明後日の夕方には帰ってるからね。」


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •