Compiling Python with static runtime library (VS2010)

Discussion in 'Python' started by Jonatan Magnusson, Feb 11, 2013.

  1. Hi

    I'm trying to build Python 3.3.0 on Windows using Visual Studio 2010 Express.

    I opened the solution (pcbuild.sln) and built the "python" project (including its dependencies of course) and that worked fine with just a few warnings.

    But I need to build Python using the the static C runtime so I followed the instructions:

    * Changed "Runtime Library" to non-DLL variant (/MT or /MTd) for each of the projects (make_buildinfo, make_versioninfo, kill_python, python core, w9xpopen and python)
    * Changed preprocessor macro Py_ENABLED_SHARED to Py_NO_ENABLE_SHARED in the pythoncore project
    * Changed configuration type from Dynamic Library to Static library for the pythoncore project

    Then I recompiled and once again it built with just a few warnings, until the link stage where "__imp__Py_Main" was unresolved!

    Is it no longer supported to build against the static runtime libraries or am I doing something wrong?


    Regards,
    Jonatan Magnusson
    Jonatan Magnusson, Feb 11, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexey Smirnov
    Replies:
    2
    Views:
    1,364
    Alexey Smirnov
    Dec 17, 2009
  2. Alexey Smirnov
    Replies:
    1
    Views:
    555
    Alvin Bruney - ASP.NET MVP
    Feb 14, 2010
  3. Nick Gilbert
    Replies:
    2
    Views:
    1,700
    Nick Gilbert
    Apr 21, 2010
  4. gerry
    Replies:
    3
    Views:
    713
    Alexey Smirnov
    Apr 21, 2010
  5. Cal Who
    Replies:
    2
    Views:
    352
    Cal Who
    Apr 26, 2010
Loading...

Share This Page