Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Collada_Dom linker error

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Posts
    17

    Collada_Dom linker error

    Hello.
    I'm trying to use Collada_dom static library, but when i try to compile, i receive this error:

    Error 10 error LNK2019: unresolved external symbol "public: __thiscall daeLIBXMLResolver::daeLIBXMLResolver(class daeDatabase *,class daeIOPlugin *)" (??0daeLIBXMLResolver@@QAE@PAVdaeDatabase@@PAVdaeI OPlugin@@@Z) referenced in function "public: virtual int __thiscall DAE::setIOPlugin(class daeIOPlugin *)" (?setIOPlugin@DAE@@UAEHPAVdaeIOPlugin@@@Z) libcollada_dae.lib
    How can i compile the application?
    Thank you.

  2. #2
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Which version of the code are you using? It looks like you're using an old version of the DOM. Check out the DOM trunk and work from that:
    Code :
    svn co [url]https://collada-dom.svn.sourceforge.net/svnroot/collada-dom/trunk[/url] colladadom
    I'm fairly sure that the static lib works fine because RT uses the static lib and I just built RT yesterday. It's possible that upgrading to the latest DOM won't fix your problem because there's something you're doing wrong, but using an old version would have gotten you in trouble in other ways anyway.

    Steve

  3. #3
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    I've donwloaded the install version from Sourceforge downloads, i'm using Visual C++ 2008 Professional.

    Can it work or not?

  4. #4
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    I've tried by donwload new svn version.
    Now i can compile, but (and i do not know why) beyond my exe file there is also a .lib files and it can't start becouse it say me that he is unable to find the start point of xmltextreaderattributecount

  5. #5
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Yes, we support VS 2008. We only provide 2005 project files and you have to use VS to convert them to 2008, which I assume you've done.

    Try building the domTest project. Assuming it builds fine, run it on the command line with 'domTest -all'. All tests should pass.

    If you get to this point it's likely you're doing something wrong in your app. domTest can be used as an example of a working Collada app. Look at the project settings and see if there's something different from what you're doing.

    It sounds like you might be linking against the DLL version of the DOM instead of the static lib. The static lib ends in '-s', as in libcollada14dom20-s.lib (release) or libcollada14dom20-sd.lib (debug). If you want the DLL version, you need to define DOM_DYNAMIC in your project settings. This makes sure you get all the __declspec(dllimport) statements you need for working with a DLL on Windows.

    Steve

  6. #6
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    Thank you for your help.

    Domtest.exe -all passed and works.
    Code :
    #include <dae.h>
    #include <dom/domCollada.h>
    #include <dom/domConstants.h>
     
    #pragma comment(lib,"libcollada14dom20-s.lib")
    #pragma comment(lib,"libxml2.lib")
    #pragma comment(lib,"pcre.lib")
    #pragma comment(lib,"pcrecpp.lib")

    This is what i insert in my project (and projects directory are correctly set), but, when i try to run it, it gives me this


    Anyway, i can also use only the libs (i do not need sources), but installers gives anyway linker errors.

    Do you know where can i download compiled bins?

  7. #7
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    You want libxml2_a.lib, which is the static libxml2 lib. libxml2.lib is for the dll.
    Do you know where can i download compiled bins?
    DOM 2.0 pre-built binary packages won't be available until DOM 2.0 is published, which will be very soon.

    Steve

  8. #8
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    day? weeks? months?

  9. #9
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Days. What's the problem about building from source in the meantime? The problem you're having with libxml2.lib isn't something that having pre-built DOM binaries would fix for you.

  10. #10
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    I've deleted the project: i will try to make it new and will let you know something.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •