I have a program
#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
cout<<"Hello World!! This Program Is made in win32 API\n";
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:\\home\\garvit\\C++\\hello64.exe") not found
0009:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\garvit\\C++\\hello64.exe" failed, status c0000135
I am using Ubuntu 20.04, and i am new to Linux.
WINEPATHto point to the folder with the DLLs. For example:WINEPATH=/usr/local/x86_64-w64-mingw32/bin/;/usr/lib/gcc/x86_64-w64-mingw32/10-win32/– Daniel Stevens Nov 30 '21 at 02:04