<!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 & port a
simple VC++ application to linux using wine. I tried to compile a VC++
application using the winelib method. But it showed a lot of errors. Does anyone
have any idea.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I had tried all options. 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 executed following commands<BR> a)winemaker --lower-uppercase
.<BR> (later i tried the follwing command
also.<BR> winemaker --lower-uppercase --console
-I/usr/include/include/wine -L/usr/include/include/wine .)<BR>
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> ///To the /usr/include/include
directory i copied all the original MFC files from V.Studio.<BR> b)
./configure --with-wine-includes=/usr/include/include</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> now it showed the error<BR>-->
checking for -lmfc... configure: error: Could not find the
MFC<BR>library</FONT></DIV>
<DIV> </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> </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. But when i
"make" it showed a lot of errors . Some are given below
.<BR>
----------<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>
------<BR> 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>
--------<BR>.<BR>.<BR>.<BR>/usr/include/include/pshpack2.h:22:4: #error
"Alignment nesting > 3 is<BR>not supported"<BR>In file included from
/usr/include/include/afxcmn.h:38,<BR>
from
StdAfx.h:20,<BR>
from vctest.cpp:4:<BR>/usr/include/include/pshpack4.h:22:4: #error "Alignment
nesting > 3 is<BR>not supported"<BR>In file included from
/usr/include/include/poppack.h:31,<BR>
from
/usr/include/include/pshpack2.h:38,<BR>
from
/usr/include/include/poppack.h:31,<BR>
from
/usr/include/include/afxcmn.h:1132,<BR>
from
StdAfx.h:20,<BR>
from vctest.cpp:4:<BR>/usr/include/include/pshpack2.h:22:4: #error "Alignment
nesting > 3 is<BR>not supported"<BR>In file included from
/usr/include/include/pshpack2.h:47,<BR>
from
/usr/include/include/poppack.h:31,<BR>
from
/usr/include/include/afxcmn.h:1132,<BR>
from
StdAfx.h:20,<BR>
from vctest.cpp:4:<BR>/usr/include/include/pshpack2.h:22:4: #error "Alignment
nesting > 3 is<BR>not supported"<BR>make: *** [vctest.o] Error
1<BR>
----------------</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 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>