Hi,

here the error without the fix:
ReaderWriterCURL.cpp
..\..\..\..\src\osgPlugins\curl\ReaderWriterCURL.cpp(406) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
Linking...
Creating library C:\sources\osg-branch\build\lib\Release\osgdb_curl.lib and object C:\sources\osg-branch\build\lib\Release\osgdb_curl.exp curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_unbind_s referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_msgfree referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_next_entry referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ber_free referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_next_attribute referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_memfree referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_value_free_len referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_get_values_len referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_first_attribute referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_get_dn referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_first_entry referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_search_s referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_simple_bind_s referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_init referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_set_option referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_err2string referenced in function _Curl_ldap C:\sources\osg-branch\build\bin\Release\..\osgPlugins-2.7.6\osgdb_curl.dll : fatal error LNK1120: 16 unresolved externals


Cheers,
Cedric

Jason Beverage wrote:
Hi Robert and Cedric,

I've built and used the CURL plugin in Visual Studio 2008 Professional as is with no problems. What were the build errors you were seeing Cedric? It could be that the Express editions don't link against some standard lib that the professional versions do.

Thanks!

Jason

On Thu, Nov 27, 2008 at 5:03 AM, Cedric Pinson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi Robert,

    Well this lib comes from C:\Program Files\Microsoft
    SDKs\Windows\v6.0A\Lib
    Yes i understand it could break other build. Anyway i needed to
    added it order to
    compile plugin curl. Other windows users can maybe validate this fix.

    Cheers,
    Cedric


    Robert Osfield wrote:

        Hi Cedric,

        This addition makes me nervous... as I believe the curl plugin
        worked
        before under Windows and adding it my fix it for you but possibly
        break the buiild for others.  What is the dependency wldap32?
         Is it a
        standard windows lib?  If so how far back does it go?

        Robert.

        On Thu, Nov 27, 2008 at 12:14 AM, Cedric Pinson
        <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
            Hi Robert,

            I updated the CMakelist.txt of curl plugin to compile with
            the static
            library of curl.
            I added the external dependency wldap32

            I dont know if it worked before, but with visual C express
            2008 i had to add
            it

            Cheers,
            Cedric

            --
            +33 (0) 6 63 20 03 56  Cedric Pinson
            mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
            http://www.plopbyte.net



            _______________________________________________
            osg-submissions mailing list
            [email protected]
            <mailto:[email protected]>
            
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org


        _______________________________________________
        osg-submissions mailing list
        [email protected]
        <mailto:[email protected]>
        
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

-- +33 (0) 6 63 20 03 56 Cedric Pinson mailto:[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]> http://www.plopbyte.net


    _______________________________________________
    osg-submissions mailing list
    [email protected]
    <mailto:[email protected]>
    
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org


------------------------------------------------------------------------

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

--
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:[EMAIL PROTECTED] 
http://www.plopbyte.net


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to