[gdal-dev] Unable to link gdal : CPLCreateOrAcquireMutex reference not found

Even Rouault even.rouault at mines-paris.org
Sat Jan 7 20:15:36 EST 2012


Le jeudi 08 décembre 2011 10:57:38, Alexandre Herbreteau a écrit :
> Hi,
> 
> I've downloaded the latest GDAL source code by i'm unable to produce a
> library. It is due to a link error : "undefined reference to
> `CPLCreateOrAcquireMutex"
> 
> I'm using Mingw with gcc 4.5.2. Here is what I do :
> 
> Unzip, go to Gdal root directory, and run configure:
> - This generate a file cpl_config.h (under "port" directory) with this
> option :
> #define CPL_MULTIPROC_PTHREAD 1
> 
 
> It is quite strange that nobody already reported this problem, because
> compiling GDAL with CPL_MULTIPROC_PTHREAD support and under WIN32 is
> something really usual !!!!
> 
> What is wrong, please, with my way of doing ?

See http://trac.osgeo.org/gdal/ticket/4430 for a fix.

> 
> Thanks a lot for your answer.
> 
> Alexandre.


More information about the gdal-dev mailing list