On Tue, May 09, 2006 at 11:08:21AM -0500, Bo Peng wrote: > Please, go to src/SConscript line 171 and move 'SYSTEM_LIBS' after > 'BOOST_LIBS'. This should solve the link problem, if it is caused by > -lz ordering (linux/g++, mingw do not care).
Confirmed. Ordering matters. This is the only undefined reference I got: Info: resolving __ZN2Qt11arrowCursrelease/cygwin-qt3-X11/libs/libcontrollers.a(ControlSpellchecker.o):ControlSpellchecker.C:(.text+0x6f1): undefined reference to `ASpell::ASpell(BufferParams const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' orE by linking to __imp___ZN2Qt11arrowCursorE (auto-import) collect2: ld returned 1 exit status because I asked for aspell support when configuring (I presume that it is not possible to have aspell at the moment). BTW, how can I add "-O2" to the compiler flags? I tried CPPFLAGS=-O2 on the command line, and also "export CPPFLAGS=-O2", but scons seems to ignore both. -- Enrico