Hi all,

I have several problems with the 3.1.31 compiler. I made a CMake for a 
project and with the 3.1.13 it compiled properly. Now I updated to 3.1.31 
and it doesn't work anymore. I try to compile it in Debug mode with the 
next DEBUG definitions (this is a static library):

set(DEBUG_DEFINITIONS
    _LIBCPP_DEBUG=1
    _DEBUG
    CMAKE_BUILD
)

and the DEBUG_DEFINITIONS are added like this:

target_compile_definitions(${LIBRARY_NAME}
    PRIVATE
        "$<$<CONFIG:DEBUG>:${DEBUG_DEFINITIONS}>"
)

Previously it worked but now I have this error message:

/mnt/c/Works/Dev/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__debug:24:5:
 
error: "Enabling the debug mode now requires having configured the library 
with support for the debug mode"
# error "Enabling the debug mode now requires having configured the library 
with support for the debug mode"
    ^
1 error generated.

It doesn't stop here. If I compile it in Release mode, I'll have this error 
messages: error: reference to 'unordered_map' is ambiguous. AFAIK this 
error message would be generated if the compiler doesn't know the C++ 
version. But I specified it like this:

target_compile_options(${LIBRARY_NAME}
    PRIVATE
        -std=c++2a
        -fwasm-exceptions
        -pthread
)

What could be the solution for these errors?
Thank you in advance the helps.

Tibor

-- 
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-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/dd1e4c90-5c23-4f80-9413-aa7f4adce31fn%40googlegroups.com.

Reply via email to