incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: Cygwin cannot find -lstd12d
Date Fri, 02 Mar 2007 17:29:13 GMT
Mark Brown wrote:
> Hi again,
> 
> Sorry about all the emails tonight. I'm sending them out as I run into things. Hopefully
they'll be useful. After the library built all examples are now getting the same error. Looks
like the Cygwin linker can't find the library even though it's there (I checked :)

That's odd. Please go ahead and open an issue for this as well.

> 
> $ make
> gcc -c -I/home/mbrown/stdcxx/include/ansi   -mthreads -D_RWSTD_USE_CONFIG -I/home/mbrown/stdcxx/include
-I/home/mbrown/stdcxx-12d/include -I/home/mbrown/stdcxx/examples/include  -pedantic -nostdinc++
-O2  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align  
/home/mbrown/stdcxx/examples/manual/accumulate.cpp
> 
> (...lots of warnings about failed inlining...)

I'm guessing these are the same warnings we get with gcc 3.4.4
on Linux (see below). I don't think we have an issue for them
in Jira and we probably should. They make builds excessively
noisy. I suspect the only way to deal with them is to disable
them completely. IIRC, we looked into restructuring our code
some time ago to help the inliner (or avoid trying to inline
those that looked unreasonably big) but discovered it wasn't
really feasible. I think the gcc maintainers must have realized
the warnings weren't useful and removed them (or fixed the
feature) in a later version of the compiler.

gmake: Entering directory `$(BUILDDIR)/examples'
gcc -c -I$(TOPDIR)/include/ansi   -pthread -D_RWSTD_USE_CONFIG 
-I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include 
-pedantic -nostdinc++ -O2   -W -Wall -Wcast-qual -Winline -Wshadow 
-Wwrite-strings -Wno-long-long -Wcast-align 
$(TOPDIR)/examples/manual/accumulate.cpp
In file included from $(TOPDIR)/examples/manual/accumulate.cpp:698:
$(TOPDIR)/include/vector: In member function `void std::vector<_TypeT, 
_Allocator>::_C_insert_range(typename _Allocator::pointer, _FwdIter, 
_FwdIter, std::forward_iterator_tag) [with _FwdIter = int*, _TypeT = 
int, _Allocator = std::allocator<int>]':
$(TOPDIR)/include/vector:634: warning: inlining failed in call to 'void 
std::vector<_TypeT, _Allocator>::swap(std::vector<_TypeT, _Allocator>&) 
[with _TypeT = int, _Allocator = std::allocator<int>]': function not 
considered for inlining
$(TOPDIR)/include/vector:654: warning: called from here

Martin

> 
> gcc accumulate.o -o accumulate -mthreads -L/home/mbrown/stdcxx-12d/lib -lstd12d  -lsupc++
-lcatgets -liconv -lm 
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lstd12d
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
> 
> 
> -- Mark


Mime
View raw message