> On 13.03.2013 11:59, Mirko D. Comparetti wrote: > > > The strange thing is that if I change Output in Input (...), it works > > perfectly. > > Okay, now we're coming closer, and now we REALLY need your > build environment and your FLTK version! > > Let me guess: > > (1) you're linking against the shared libs of FLTK ? > (2) you're probably using a FLTK version older than 1.3.2 ? > > Note that FLTK 2.x is OLDER than any 1.3.x version, and that you > should definitely NOT use 2.0 or 3.0 (dev./pre-alpha version). > > Please try to link statically and tell us the FLTK version. > > If it's not 1.3.2 or later (svn), there may be missing c'tors > in the shared libs that have already been fixed. > > If it's 1.3.2 or a later svn version, then you found another > missing c'tor, and we should fix this. > > TIA for feedback ... > > Albrecht >
So, I'm using 1.3.2 (right now re-downloaded and compiled), but the problem is still present. Here is the example of linking command: - - - - 8< - - - - 8< - - - - 8< - - - - 8< - - - - g++ CMakeFiles/test.dir/main.cpp.o -o test -rdynamic -lfltk_images -lfltk_forms -lfltk_gl -lGL -lfltk -lSM -lICE -lX11 -lXext -lm -lGLU -lGL -lSM -lICE -lX11 -lXext -lm -lGLU -lfltk - - - - 8< - - - - 8< - - - - 8< - - - - 8< - - - - If I explicitly tell cmake to use static libraries with «set(CMAKE_EXE_LINKER_FLAGS "-static")» I got several errors like: «warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking» and an error «/usr/bin/ld: cannot find -lGL» My set-up is: Ubuntu 12.04 with "gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)". Do you need anything else? Thank you, Regards MDC P.s. I have the same problem also with the Fl_Text_Buffer
_______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk