Wednesday, May 15, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4808  / 1 Year ago, tue, january 3, 2023, 1:19:30

I have a program



#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
cout<<"Hello World!! This Program Is made in win32 API
";
return 0;
}


but when I compile this program



x86_64-w64-mingw32-g++ Hello.cpp -o hello64.exe


and run it



wine64 hello64.exe


I get 2 errors



0009:err:module:import_dll Library libstdc++-6.dll (which is needed by L"Z:homegarvitC++hello64.exe") not found
0009:err:module:LdrInitializeThunk Importing dlls for L"Z:homegarvitC++hello64.exe" failed, status c0000135


I am using Ubuntu 20.04, and i am new to Linux.


More From » wine

 Answers
0

You need to copy this libstdc++-6.dll from your mingw installation (should be in /usr/lib/gcc/x86-w64-mingw32/9.3-win32/) to the same directory as your exe file. I expect you will get a similar message about libgcc_s_sjlj-1.dll, which you also need to copy.



I tested this with 32-bit and on a windows VM, but I hope that that will not make a difference.


[#3399] Wednesday, January 4, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulpu

Total Points: 116
Total Questions: 118
Total Answers: 104

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
fulpu questions
Fri, Apr 1, 22, 08:36, 2 Years ago
Wed, Mar 16, 22, 15:25, 2 Years ago
Wed, Aug 24, 22, 22:59, 2 Years ago
Tue, Dec 20, 22, 22:33, 1 Year ago
;