Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I'm running g++ 11.2 and have had no luck getting any version of Irrklang to link with my project. They all return undefined reference. My cmake is as follows: I remember Irrklang working well with the compiler that came with Code::Blocks, but that was also gcc so I'm not certain why it stopped working with CLion. Here is my cmake file: cmake_minimum_required(VERSION 3.23) project(Echoes_of_the_Past) set(CMAKE_CXX_STANDARD 14) add_executable(Echoes_of_the_Past main.cpp Includes.h PlaySoundFMOD.cpp Defines.h) message("Compiler Version: ${CMAKE_CXX_COMPILER_VERSION}") target_link_libraries(Echoes_of_the_Past F:/Combustible/cmake-build-debug/libCombustible.a mingw32 opengl32 glu32 gdi32 F:/Combustible/Dependencies/Libraries/DevIL.lib F:/Combustible/Dependencies/Libraries/ILU.lib F:/Combustible/Dependencies/Libraries/ILUT.lib F:/Combustible/Dependencies/Irrklang/lib/libirrKlang.a) All other libraries have no issue linking, just irrklang. The file path is 100% correct too as the cmake would spit out an error if it detected a non-legal file path. So, is there anything I can do or is Irrklang just not compatible? |
||||
|
I too am having issues linking IrrKlang with gcc 13.1.0 / minGW-w64. I have attempted to link the 32-bit versions of the 1.4.0b and 1.5 IrrKlang downloads, but Code::Blocks reports an undefined reference issue. Is there a difference between linking the .lib file with mingw32 versus minGW-w64? I am looking for a solution. |
||||
|
I solved the issue by downloading a 32-bit version of mingw32 from http://winlibs.com. There are many different distributions of the compiler. |
|