[Wine] Problems when compiling MFC Application

Nagarjuna Bandi nagarjunabandi at yahoo.co.in
Thu Jan 24 23:39:11 CST 2008


Dear All,

    Here is what the errors i am getting while compiling the MFC Application with winelib.

////////////////////////////////////////////////////

wineg++ -c  -mno-cygwin -I.    -o hello.o hello.cpp
In file included from hello.cpp:17:
stdafx.h:13:20: afxwin.h: No such file or directory
In file included from hello.cpp:20:
hello.h:26: error: expected class-name before '{' token
hello.h:31: error: ISO C++ forbids declaration of `afx_msg' with no type
hello.h:31: error: expected `;' before "void"
hello.h:32: error: ISO C++ forbids declaration of `afx_msg' with no type
hello.h:32: error: expected `;' before "void"
hello.h:36: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP' with no type
hello.h:36: error: expected `;' before '}' token
hello.h:36: error: expected `;' before '}' token
hello.h:44: error: expected class-name before '{' token
hello.h:46: error: `BOOL' does not name a type
hello.cpp:27: error: `NEAR' does not name a type
hello.cpp: In constructor `CMainWindow::CMainWindow()':
hello.cpp:36: error: `LoadFrame' was not declared in this scope
hello.cpp: At global scope:
hello.cpp:47: error: no `void CMainWindow::OnPaint()' member function declared in class `CMainWindow'
hello.cpp: In member function `void CMainWindow::OnPaint()':
hello.cpp:48: error: `CRect' was not declared in this scope
hello.cpp:48: error: expected `;' before "rect"
hello.cpp:49: error: `rect' was not declared in this scope
hello.cpp:49: error: `GetClientRect' was not declared in this scope
hello.cpp:51: error: `CPaintDC' was not declared in this scope
hello.cpp:51: error: expected `;' before "dc"
hello.cpp:52: error: `dc' was not declared in this scope
hello.cpp:52: error: `TA_BASELINE' was not declared in this scope
hello.cpp:52: error: `TA_CENTER' was not declared in this scope
hello.cpp:53: error: `::GetSysColor' has not been declared
hello.cpp:53: error: `COLOR_WINDOWTEXT' was not declared in this scope
hello.cpp:54: error: `TRANSPARENT' was not declared in this scope
hello.cpp:55: error: `CString' was not declared in this scope
hello.cpp:55: error: expected `;' before "s"
hello.cpp:56: error: `s' was not declared in this scope
hello.cpp: At global scope:
hello.cpp:69: error: no `void CMainWindow::OnAbout()' member function declared in class `CMainWindow'
hello.cpp: In member function `void CMainWindow::OnAbout()':
hello.cpp:70: error: `CDialog' was not declared in this scope
hello.cpp:70: error: expected `;' before "about"
hello.cpp:71: error: `about' was not declared in this scope
hello.cpp: At global scope:
hello.cpp:83: error: `CFrameWnd' has not been declared
hello.cpp:85: error: expected constructor, destructor, or type conversion before "ON_WM_PAINT"
winegcc: g++ failed
make: *** [hello.o] Error 2

///////////////////////////////////////////////////

     Please let me know what and where is the problem and give me some suggestions to resolve these problems.

Thanks and Regards,
Nagarjuna Bandi.




      Now you can chat without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php



More information about the wine-users mailing list