Problems when compiling MFC application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,
 
     This is my first post on the wine organisation mailing lists, i would like to inform all of you i am using the wine-0.9.53 latest version. Now i am in a need to compile MFC applications with wine. when i tried to compile my sample application i am getting errors like
 
[nagarjunab@ibi212 mfc_general_hello]$ make
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
    can anyone let me know what is the problem, and what i want to do resolving these errors.
 
Regards,
Nagarjuna Bandi.



Forgot the famous last words? Access your message archive online. Click here.
_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux