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.
 
I had tried all options.  I had done follwing things
1) I created a simple VC++ application. Just to display a msg on
clicking a button.
2) I copied it to Linux' home directory
3) I  executed following commands
  a)winemaker --lower-uppercase .
    (later i tried the follwing command also.
    winemaker --lower-uppercase --console  -I/usr/include/include/wine -L/usr/include/include/wine .)
   
 
    ///To the /usr/include/include directory i copied all the original MFC files from V.Studio.
  b) ./configure --with-wine-includes=/usr/include/include
 
  now it showed the error
-->  checking for -lmfc... configure: error: Could not find the MFC
library
 
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.
 
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 .
                       ----------
s/usr/include/include/afxwin1.inl:1014: warning: ISO C++ forbids
declaration of `operator==' with no
type
/usr/include/include/afxwin1.inl:1016: warning: ISO C++ forbids
declaration of `operator!=' with no
type
.
.
/usr/include/include/afxole.inl:97: `vt' undeclared (first use this
function)
/usr/include/include/afxole.inl:97: (Each undeclared identifier is
reported only once for each function it appears in.)
/usr/include/include/afxole.inl: In method `COleVariant::COleVariant
(unsigned char)':
.
.
/usr/include/include/afxole.inl: In method `COleCurrency::COleCurrency
()':
/usr/include/include/afxole.inl:123: `union tagCY' has no member named
`Hi'
/usr/include/include/afxole.inl:123: `union tagCY' has no member named
`Lo'
/usr/include/include/afxole.inl:283: `parray' undeclared (first use
this function)
make: *** [vctest.o] Error 1
                                              ------
  Later I run the command winemaker --lower-uppercase . in the
/usr/include/include directory and converted entire contents.
after that when i make the vc++ application again it showed some
different errors.
                                              --------
.
.
.
/usr/include/include/pshpack2.h:22:4: #error "Alignment nesting > 3 is
not supported"
In file included from /usr/include/include/afxcmn.h:38,
                 from StdAfx.h:20,
                 from vctest.cpp:4:
/usr/include/include/pshpack4.h:22:4: #error "Alignment nesting > 3 is
not supported"
In file included from /usr/include/include/poppack.h:31,
                 from /usr/include/include/pshpack2.h:38,
                 from /usr/include/include/poppack.h:31,
                 from /usr/include/include/afxcmn.h:1132,
                 from StdAfx.h:20,
                 from vctest.cpp:4:
/usr/include/include/pshpack2.h:22:4: #error "Alignment nesting > 3 is
not supported"
In file included from /usr/include/include/pshpack2.h:47,
                 from /usr/include/include/poppack.h:31,
                 from /usr/include/include/afxcmn.h:1132,
                 from StdAfx.h:20,
                 from vctest.cpp:4:
/usr/include/include/pshpack2.h:22:4: #error "Alignment nesting > 3 is
not supported"
make: *** [vctest.o] Error 1
                       ----------------
 
 I think the problem might be with -lmfc. Please kindly help me to
come out of these errors.


______________________________________
Scanned and protected by Email scanner