Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4058862
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:08:00+00:00 2026-05-20T15:08:00+00:00

This is I guess a question in a few parts. I’m working through the

  • 0

This is I guess a question in a few parts.

I’m working through the documentation on embedding the python interpreter. I’ve got everything compiling and linking wonderfully, only the application crashes when I run it ( to be specific its unable to load, so it hasn’t even begun running).

I’m running windows 7 professional 64 bit. I’m compiling on the most recent nightly build of mingw, with msys ( which was packaged with the installer so no compatibility mismatch there I believe). The same code compiles fine on Ubuntu 10.10 using the default repository python 3.1 and build-essential tools.

So far in my research I’m believing this “might” be an issue between linking a 32 bit application ( as mingw is using 32 bit to my knowledge) with a 64 bit library (the python dll).

I can post code in full, however since this tends to be a linking/running issue I’ve only included the makefile to begin with. From the makefile below, I have copied the Python3.dll from C:\Python32\DLLs into the directory of my project. Also of note, that I had to create my own .def and then .a from the DLL in order to link ( symbols not found otherwise). Could this be a source of my issues?

Upon running a.exe (from both command line and explorer) I receive a standard alert window with:

Application Error: The application was unable to start correctly (0xc000007b). Click OK to close the application.

Correct me if I’m wrong, but this indicates that my executable is in some way corrupted.

I have tested my compiler/linker to ensure that it isn’t a compiler/linker issue. It includes and this does NOT throw any errors on compiling, linking or running when the application does not use python.

Thanks for any assistance or light you can shed on the matter. This has me truly stumped.
pcnerd

Makefile

FILE= main.cpp
LIBS=  -lpython3
LIBPATH= -L/c/python32/libs
INCLUDEPATH = -I/c/python32/include
CPP=g++
FLAGS = -g

build:
    $(CPP) $(FLAGS) $(FILE) $(LIBS) $(LIBPATH) $(INCLUDEPATH)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:08:01+00:00Added an answer on May 20, 2026 at 3:08 pm

    If the python3.dll is definitely 64bit and your application is definitely 32bit, then this will not work. You can’t link to 64bit dlls from 32bit applications. Pointers just won’t be able to work between the two models.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay guess this question looks a lot like: What is the best way to
I guess this question will sound familiar, but I am yet another programmer baffled
I guess this is a simple question. I need to do something like this:
I guess this is kind of an odd question but I have tried setting
I guess this is a continuation of the last question I asked: bulk insert
I'm a fan of C# but I guess this is an OOP question in
This is very basic magento question i guess. I want to first get all
This is a simple question,I guess, but I couldn't figure it out. How do
I guess my main question is, will this always work as long as I
This is more of a general design question I guess... I have an Ajax

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.