cannot compile a .C code

Questions about Wine on Linux
Locked
kriss332
Newbie
Newbie
Posts: 3
Joined: Sat Dec 14, 2013 6:49 am

cannot compile a .C code

Post by kriss332 »

Hello all,

I've been having lots of troubles for last few days while compiling C programs through wine-MinGW-gcc compiler.
It is a common error for C programs.

Code: Select all

err:module:import_dll Library libmpc-3.dll (which is needed by L"C:\\mingw\\libexec\\gcc\\mingw32\\4.8.1\\cc1.exe") not found
err:module:import_dll Library libmpfr-4.dll (which is needed by L"C:\\mingw\\libexec\\gcc\\mingw32\\4.8.1\\cc1.exe") not found
err:module:import_dll Library zlib1.dll (which is needed by L"C:\\mingw\\libexec\\gcc\\mingw32\\4.8.1\\cc1.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\mingw\\libexec\\gcc\\mingw32\\4.8.1\\cc1.exe" failed, status c0000135
Plz guide me how to resolve it. Have been through lot of frustration for 3 days.
The code has following headers:-

Code: Select all

#include "stdafx.h"
#include <winsock2.h>
#include <Rpc.h>
#include <stdio.h>
#include <stdlib.h>

#pragma comment(lib, "mpr")
#pragma comment(lib, "Rpcrt4")
Plz be detailed as I'm new to Wine and configuring Linux for Wine.

Thanks
kriss332
#pragma comment(lib, "ws2_32")
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Re: cannot compile a .C code

Post by etwineb »

did you try to add those missing .dll files?
User avatar
André H.
Moderator
Moderator
Posts: 207
Joined: Sun Dec 07, 2008 8:33 am

Re: cannot compile a .C code

Post by André H. »

Why not just use the native Linux mingw-w64 compiler?
kriss332
Newbie
Newbie
Posts: 3
Joined: Sat Dec 14, 2013 6:49 am

Re: cannot compile a .C code

Post by kriss332 »

Ok, I got the code I needed compiled with VisualStudio 2008, but when I run the code using wine, it gives me following error:-

Code: Select all

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC90.DebugCRT" (9.0.21022.8)
err:module:import_dll Library MSVCR90D.dll (which is needed by L"Z:\\root\\33.205\\08-067.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\root\\33.205\\08-067.exe" failed, status c0000135
kriss332
Newbie
Newbie
Posts: 3
Joined: Sat Dec 14, 2013 6:49 am

Re: cannot compile a .C code

Post by kriss332 »

etwineb wrote:did you try to add those missing .dll files?
Plz, give me somewhat detailed answer with procedure too. It'll take me some time to get familiarized with WINE.
André H. wrote:Why not just use the native Linux mingw-w64 compiler?
I am using 32-bit OS.

As suggested:-

Code: Select all

dependent assembly L"Microsoft.VC90.DebugCRT" (9.0.21022.8)
and MSVCR90D.dl
Where can I find them and where to place them in my wine?
Thanks for bearing with me.
User avatar
André H.
Moderator
Moderator
Posts: 207
Joined: Sun Dec 07, 2008 8:33 am

Re: cannot compile a .C code

Post by André H. »

kriss332 wrote:
André H. wrote:Why not just use the native Linux mingw-w64 compiler?
I am using 32-bit OS.
That's no reason, you can do it anyway, you don't need a 64-bit Linux to crosscompile for 64-bit Windows
Locked