<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, I want to know how i can a compile &amp; port a 
simple VC++ application to linux using wine. I tried to compile a&nbsp; VC++ 
application using the winelib method. But it showed a lot of errors. Does anyone 
have any idea.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I had tried all options.&nbsp; I had done follwing 
things <BR>1) I created a simple VC++ application. Just to display a msg 
on<BR>clicking a button.<BR>2) I copied it to Linux' home directory<BR>3) 
I&nbsp; executed following commands<BR>&nbsp; a)winemaker --lower-uppercase 
.<BR>&nbsp;&nbsp;&nbsp; (later i tried the follwing command 
also.<BR>&nbsp;&nbsp;&nbsp; winemaker --lower-uppercase --console&nbsp; 
-I/usr/include/include/wine -L/usr/include/include/wine .)<BR>&nbsp;&nbsp;&nbsp; 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; ///To the /usr/include/include 
directory i copied all the original MFC files from V.Studio.<BR>&nbsp; b) 
./configure --with-wine-includes=/usr/include/include</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; now it showed the error<BR>--&gt;&nbsp; 
checking for -lmfc... configure: error: Could not find the 
MFC<BR>library</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I couldn't able to correcet it. Where i can get the 
original -lmfc (libmfc) file, there is no such file present in the 
system.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>c)Finally I myself created a fake libmfc.so file 
and placed it in the /usr/include/include directory.&nbsp; But when i&nbsp; 
"make" it&nbsp; showed a lot of errors . Some are given below 
.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
----------<BR>s/usr/include/include/afxwin1.inl:1014: warning: ISO C++ 
forbids<BR>declaration of `operator==' with 
no<BR>type<BR>/usr/include/include/afxwin1.inl:1016: warning: ISO C++ 
forbids<BR>declaration of `operator!=' with 
no<BR>type<BR>.<BR>.<BR>/usr/include/include/afxole.inl:97: `vt' undeclared 
(first use this<BR>function)<BR>/usr/include/include/afxole.inl:97: (Each 
undeclared identifier is<BR>reported only once for each function it appears 
in.)<BR>/usr/include/include/afxole.inl: In method 
`COleVariant::COleVariant<BR>(unsigned 
char)':<BR>.<BR>.<BR>/usr/include/include/afxole.inl: In method 
`COleCurrency::COleCurrency<BR>()':<BR>/usr/include/include/afxole.inl:123: 
`union tagCY' has no member 
named<BR>`Hi'<BR>/usr/include/include/afxole.inl:123: `union tagCY' has no 
member named<BR>`Lo'<BR>/usr/include/include/afxole.inl:283: `parray' undeclared 
(first use<BR>this function)<BR>make: *** [vctest.o] Error 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
------<BR>&nbsp; Later I run the command winemaker --lower-uppercase . in 
the<BR>/usr/include/include directory and converted entire contents.<BR>after 
that when i make the vc++ application again it showed some<BR>different 
errors.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
--------<BR>.<BR>.<BR>.<BR>/usr/include/include/pshpack2.h:22:4: #error 
"Alignment nesting &gt; 3 is<BR>not supported"<BR>In file included from 
/usr/include/include/afxcmn.h:38,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
StdAfx.h:20,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from vctest.cpp:4:<BR>/usr/include/include/pshpack4.h:22:4: #error "Alignment 
nesting &gt; 3 is<BR>not supported"<BR>In file included from 
/usr/include/include/poppack.h:31,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/include/pshpack2.h:38,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/include/poppack.h:31,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/include/afxcmn.h:1132,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
StdAfx.h:20,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from vctest.cpp:4:<BR>/usr/include/include/pshpack2.h:22:4: #error "Alignment 
nesting &gt; 3 is<BR>not supported"<BR>In file included from 
/usr/include/include/pshpack2.h:47,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/include/poppack.h:31,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/include/afxcmn.h:1132,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
StdAfx.h:20,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from vctest.cpp:4:<BR>/usr/include/include/pshpack2.h:22:4: #error "Alignment 
nesting &gt; 3 is<BR>not supported"<BR>make: *** [vctest.o] Error 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
----------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;I think the problem might be with -lmfc. 
Please kindly help me to<BR>come out of these errors.</FONT></DIV><BR><PRE>

______________________________________
Scanned and protected by Email scanner
</pre><BR></BODY></HTML>