Closed lbhack closed 1 year ago
Hi @lbhack ! Thanks for the feedback. This issue has been solved in NAppGUI 1.3 (will be released next 26/12/2022).
For now, you can fix it adding these lines at the end of targetLinkWithLibraries
function in /prj/CMakeFunctions.txt
# In GCC the g++ linker must be used
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
set_target_properties(${targetName} PROPERTIES LINKER_LANGUAGE CXX)
endif()
I close this issue because compile testing in Ubuntu 22.04 with NAppGUI 1.3 works fine. Also in other Ubuntu versions. Please reopen if still you have problems with this.
hi @frang75 I am getting this is on ubuntu how I fix it : usr/bin/ld: /home/parallels/nappgui_sdk/lib/gcc11_gtk3_x64/Debug/libsewer.a(bmath.cpp.o): undefined reference to symbol 'exp@@GLIBC_2.29' /usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: [demo/hello/CMakeFiles/HelloWorld.dir/build.make:111: demo/hello/Debug/HelloWorld] Error 1 make[1]: [CMakeFiles/Makefile2:358: demo/hello/CMakeFiles/HelloWorld.dir/all] Error 2 make: *** [Makefile:91: all] Error 2