Hi all, After I upgraded to gcc 5.2.0 I get some weird linking errors.
Is it possible that the gcc 5.2.0 generates code that is not linker compatible with libraries built with gcc 4.9.2? To reproduce do this: # install OSG $ pacman -S mingw64/mingw-w64-x86_64-OpenSceneGraph # get an OSG example from http://trac.openscenegraph.org/projects/osg//wiki/Support/UserGuides/Examples $ wget http://trac.openscenegraph.org/projects/osg/export/15027/OpenSceneGraph/trunk/examples/osganimate/osganimate.cpp # compile the example using latest gcc 5.2.0 $ g++ osganimate.cpp `pkg-config --libs openscenegraph` F:\msys\tmp\cch9wEYJ.o:osganimate.cpp:(.text+0x149e): undefined reference to `__imp__ZN3osg14ArgumentParser4readERKNSt7__cxx1112basic_ stringIcSt11char_traitsIcESaIcEEE' F:\msys\tmp\cch9wEYJ.o:osganimate.cpp:(.text+0x151e): undefined reference to `__imp__ZN3osg14ArgumentParser4readERKNSt7__cxx1112basic_ stringIcSt11char_traitsIcESaIcEEE' F:\msys\tmp\cch9wEYJ.o:osganimate.cpp:(.text+0x15b8): undefined reference to `__imp__ZN3osg14ArgumentParser4readERKNSt7__cxx1112basic_ stringIcSt11char_traitsIcESaIcEEE' collect2.exe: error: ld returned 1 exit status Additional question: is it possible to downgrade to gcc 4.9.2 toolchain using pacman? Cheers, Adrian Pop/ ------------------------------------------------------------------------------ _______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
