Linker problems: dependencies with .a file not resolved?

Ian Lance Taylor iant@google.com
Wed Feb 28 05:54:00 GMT 2007


"Christian Convey" <christian.convey@gmail.com> writes:

> ImageReader.cpp:(.text+0x90): undefined reference to
> `uriVideoSources::ImageReader_gen::getFrame_(bool,
> uriBase::RasterImage*)'
> 
> (there are more errors as well, but I figured this was enough to make my point).
> 
> I thought that perhaps the supposedly missing function wasn't in the
> .a file, so I check with nm as follows:
> 
> cjc@peace:~$ nm --demangle
> /home/cjc/csc583-svn/uriVisionLib/trunk/Development/Source/C++/liburiVision.a
> | grep outputFrame
> 0000002c T uriMovieEditing::ImageWriter::outputFrame(uriBase::RasterImage*)
> 00000000 T uriMovieEditing::ImageWriter::outputFrame(uriBase::RasterImage*,
> bool)
>          U uriMovieEditing::ImageWriter_gen::outputFrame_(uriBase::RasterImage*,
> bool)

The error above refers to
    uriVideoSources::ImageReader_gen::getFrame_(bool, uriBase::RasterImage*)
You didn't show whether the library defines that symbol or not.

Ian



More information about the Gcc-help mailing list