Thanks Ivan, That worked for me.
On Thursday, August 30, 2012, Ivan Sidarau wrote:
> Hi,
>
> From my cmake file (FindODBC.cmake).
>
> find_library(ODBC_LIBRARY
> NAMES iodbc odbc odbcinst odbc32
> PATHS
> /usr/lib
> /usr/lib/odbc
> /usr/local/lib
> /usr/local/lib/odbc
> /usr/local/odbc/lib
> "C:/Program Files/ODBC/lib"
> "C:/ODBC/lib/debug"
> "C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Lib"
> DOC "Specify the ODBC driver manager library here."
> )
>
> You have to add $ENV{ODBC_LIBRARIES} to PATHS list into
> <SOCI-sources>/cmake/modules/FindODBC.cmake.
> Or place your libraries to one of next folders: "C:/Program
> Files/ODBC/lib", "C:/ODBC/lib/debug", "C:/Program Files (x86)/Microsoft
> SDKs/Windows/v7.0A/Lib"
>
>
> 2012/8/29 Candy Chiu <[email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>>
>
>> Hi,
>>
>> I am having some issues getting SOCI to locate the ODBC lib files even
>> after specifying a value for ODBC_LIBRARIES. Here is my cmake command:
>>
>> cmake -G "Visual Studio 10" -DWITH_BOOST=OFF -DWITH_ORACLE=OFF
>> -DWITH_ODBC=ON -DODBC_INCLUDE_DIRECTORIES="C:/Program Files/Microsoft
>> SDKs/Windows/v7.0A/Include" -DODBC_LIBRARIES="C:/Program Files/Microsoft
>> SDKs/Windows/v7.0A/Lib" ..\src
>>
>> SOCI found the include files, but didn't find the library files.
>>
>> -- ODBC:
>> -- WARNING:
>> -- ODBC not found, some libraries or features will be disabled.
>> -- See the documentation for ODBC or manually set these variables:
>> -- ODBC_INCLUDE_DIRECTORIES = C:/Program Files/Microsoft
>> SDKs/Wi
>> ndows/v7.0A/Include
>> -- ODBC_LIBRARIES = ODBC_LIBRARY-NOTFOUND
>>
>> I checked inside C:/Program Files/Microsoft SDKs/Windows/v7.0A/Lib. I
>> could find ODBC32.LIB, ODBCCP32.LIB, but NOT GTRTST32.LIB. Is this the
>> cause of the error?
>>
>> Thanks.
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Soci-users mailing list
>> [email protected] <javascript:_e({}, 'cvml',
>> '[email protected]');>
>> https://lists.sourceforge.net/lists/listinfo/soci-users
>>
>>
>
>
> --
> Thanks,
> Ivan.
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users