0

I've compile my helloworld gtk+ application using MinGW for Native MS Windows. The instructions I followed were here.

If I run the helloworld.exe application from the same command window that I built the application, it works fine.

However, I would like to distribute the gtk+ libraries with my app, so I have downloaded and extracted all of the runtimes from http://www.gtk.org/download/win32.php.

I have also copied my helloworld.exe application to the bin folder with the gtk runtime files.

When I attempt to run my application in a new command prompt, I get the following error:

The application was unable to start correctly (0xc0000022)

My machine is 64 bit, but I downloaded the 32 bit runtime for gtk.

Any pointers will be appreciated.

Community
  • 1
  • 1
Chris Snow
  • 23,813
  • 35
  • 144
  • 309

1 Answers1

0

One option is to extract the gtk+ all-in-one-bundle to a clean folder, and copy the application to the extracted bin folder.

The extracted all-in-one-bundle can then be zipped with the included application and distributed as a zip or tar file.

Chris Snow
  • 23,813
  • 35
  • 144
  • 309