- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm having trouble compiling MFC code using Intel OneAPI DPC C++ compiler. I get multiple build errors. Attached is a sample MFC project that shows the build errors, I get different errors using the Intel Classic c++ compiler. Typical errors are "non-static member function without an object argument". Seems to be a redefinition of some MFC defines??
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
>>Typical errors are "non-static member function without an object argument"
You can remove these errors by defining a member function with the class object that it belongs to.
For example, we have made the below changes in PropertiesWnd.cpp file
ON_UPDATE_COMMAND_UI(ID_EXPAND_ALL, &CPropertiesWnd::OnUpdateExpandAllProperties)
ON_COMMAND(ID_SORTPROPERTIES, &CPropertiesWnd::OnSortProperties)....
Please refer to the below screenshot for more details:
Please try to make similar changes in your application as mentioned above and let us know If your issue still persists.
Thanks & Regards,
Noorjahan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, that did it. However I'm getting a few warnings (-Wunused-local-typedef ). How do I suppress these warnings with the Intel compiler?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
>>Thanks, that did it
Glad to know that it worked for you
>>How do I suppress these warnings with the Intel compiler?
You can suppress this warning by adding the/Wno-unused-local-typedef flag under
Properties -> C/C++ -> Command-line -> Additional-options.
Thanks & Regards,
Noorjahan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Has the information provided above helped? If yes, Could you please confirm whether we can close this thread from our end?
Thanks & Regards,
Noorjahan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for the confirmation!
As this issue has been resolved, we will no longer respond to this thread. If you need any additional information, please post a new question
Thanks & Regards,
Noorjahan.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page