Trying to build  with -fwasm-exceptions is failed with an error about undefined  __cxa_find_matching_catch_2
              
              #21916
            
            
          Replies: 2 comments
-
| 
 You may be able to add  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| You right - there was one thread party lib that built with  Thanks! | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
emcc 3.1.55.
Windows 11.
Trying to build with
-fwasm-exceptionsis failed with the following error:error : undefined symbol: __cxa_find_matching_catch_2 (referenced by root reference (e.g. compiled C/C++ code))Setting the
-fwasm-exceptionsis follow by the next steps:wasmfile that linking with several libs.-fwasm-exceptionsto all my source\lib in my project.-fno-exceptions`` -fyes-exceptions-fwasm-exceptionsresult:
get linking error:
error : undefined symbol: __cxa_find_matching_catch_2 (referenced by root reference (e.g. compiled C/C++ code))The build command:
emcc.bat Emscripten/Debug/TEApiWrapper81_for_emscripten.o Emscripten/Debug/Main.o --pre-js pre-js.js -ljpeg.Emscripten -lxml2 -lprjplg.Emscripten -lproj -lexpat -lgdal -lgeos -lgeos_c -l3ds.Emscripten -lTerraExplorerX.Emscripten -lCore.Emscripten -l7zip.Emscripten -lzip.Emscripten -llibzip.Emscripten -lgisplg.Emscripten -lMptDll.Emscripten -lOpenGL.Emscripten -lPlgShell.Emscripten -lSLLogger.Emscripten -lSLLoggerLib.Emscripten -lSLStrings.Emscripten -lTerraCommon.Emscripten -lTerra.Emscripten -lTESWQ.Emscripten -lWFSPlugin.Emscripten -lOGRPlugin.Emscripten -lsl_png.Emscripten -ldraco.Emscripten -lOpenCTM.Emscripten -lwebp.Emscripten -lMPTPlg.Emscripten -lOGRSpatialReference244.Emscripten -s ALLOW_TABLE_GROWTH -s WASM_BIGINT -s EXPORTED_RUNTIME_METHODS=ccall,cwrap,addFunction,allocateUTF8 -s EXPORTED_FUNCTIONS=_main --bind -s USE_PTHREADS -s ALLOW_MEMORY_GROWTH=1 -s ASSERTIONS -s FETCH -s TEXTDECODER=0 -lidbfs.js -s PTHREAD_POOL_SIZE=GetThreadPoolSize() -s REVERSE_DEPS=all -s STACK_SIZE=5mb -s DEFAULT_PTHREAD_STACK_SIZE=5mb -s ALLOW_BLOCKING_ON_MAIN_THREAD=1 -s PTHREAD_POOL_SIZE_STRICT=2 -fwasm-exceptions -O0 --preload-file com.skyline.terraexplorer -o C:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/Debug/TEF/TerraExplorerApp.Emscripten.js -LC:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/Debug/ -LC:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/TerraExplorerApp.Emscripten/libsThe output result:
The attach full_log.csv file is contain the output build after turning on the EMCC_DEBUG:
full_log.csv
Beta Was this translation helpful? Give feedback.
All reactions