I had made a C GTK program in Linux( simple gtk window program ) and I have compiled it with mingw cross compiler in Linux mint with this way.now I had send the a.exe file to my windows 10 computer to execute it.but when I click on a.exe file in windows 10 it says
the program can't start because <some files that I have listed in notepad in scrennshot> is missing from your computer.try reinstalling the program to fix this problem
My windows 10 doesn't have gtk installed on it. Do I need to Install gtk In my windows 10 machine?
It could be because of linking executable against shared libraries instead of static libraries. Shared libraries which your program is linked with are on your linux only they do not exist on windows thus it cannot be run under windows. If you want to successfully cross compile your program you can either compile your program statically which makes it executable on windows however the resulting exe is quite large, or you could search for and install missing dlls on your windows then re run your program and see what happens.
About Gtk not being installed on your compter, Ofcourse you should install it first then check to see if other libraries are missing
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.