- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thanks, that did it. However I'm getting a few warnings (-Wunused-local-typedef ). How do I suppress these warnings with the Intel compiler?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Yes, thanks for the help.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite