emcc gives compilation error on Microsoft c++ __pragma

125 views
Skip to first unread message

Sion Salam

unread,
Jul 1, 2015, 1:41:56 PM7/1/15
to emscripte...@googlegroups.com

I am trying to compile with emcc a c++ code written with visual studio 2013 and getting errors "use of undeclared identifier 'push'" on __pragma(warning(push)). These statements are parts of Microsoft macros that are included through stdio.h. Redefining __pragma to _Pragma and warning(push) to corresponding gcc compiler directive does not take any effect. Has anybody run into this issue and how it can be resolved?

Jukka Jylänki

unread,
Jul 1, 2015, 7:24:35 PM7/1/15
to emscripte...@googlegroups.com
See http://clang.llvm.org/docs/UsersManual.html and search for "Controlling Diagnostics via Pragmas", which discusses push and pop on warning levels.

2015-07-01 20:41 GMT+03:00 Sion Salam <ssl...@partners.org>:

I am trying to compile with emcc a c++ code written with visual studio 2013 and getting errors "use of undeclared identifier 'push'" on __pragma(warning(push)). These statements are parts of Microsoft macros that are included through stdio.h. Redefining __pragma to _Pragma and warning(push) to corresponding gcc compiler directive does not take any effect. Has anybody run into this issue and how it can be resolved?

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sion Salam

unread,
Jul 6, 2015, 1:40:48 PM7/6/15
to emscripte...@googlegroups.com
This link is about using pragmas that clang(gcc) compiler understands. It does not say how to compile with gcc code that has Microsoft c++ __pragma(s). Thank you.
Reply all
Reply to author
Forward
0 new messages