Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Collada_Dom linker error

  1. #11
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    I've rebuild all and changed linking order in this way
    Code :
    #include <dae.h>
    #include <dom/domCOLLADA.h>
    #include <dom/domConstants.h>
     
    #pragma comment(lib,"zlib.lib")
    #pragma comment(lib,"wsock32.lib")
    #pragma comment(lib,"pcre.lib")
    #pragma comment(lib,"pcrecpp.lib")
    #pragma comment(lib,"libxml2_a.lib")
    #pragma comment(lib,"libcollada14dom20-s.lib")
    [quote]
     
    Now it seems working.
    I hope that i'll not have anymore problems.
    Thanks to all![/quote]

  2. #12
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    It does not work yet!
    Now it does not give me linker error, but using this simple code

    Code :
    	DAE *collada_dom = new DAE();
    		daeInt error = collada_dom->load("teapot.dae");
    		domMesh *Mesh;
     
    		collada_dom->getDatabase()->getElement((daeElement**)&Mesh,0,0,COLLADA_TYPE_MESH,0);
    	delete collada_dom;

    It gives me an unhandled exception on new DAE() - (std::badalloc)
    I do not think i've got the heap full...infact also using normal instance (DAE collada_dom i receive same exception.

    As i can see, the error is in database creation...

  3. #13
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    Anyone can help me?
    I've tried also using debug library

    Code :
     
    #pragma comment(lib,"zlib.lib")
    #pragma comment(lib,"wsock32.lib")
    #pragma comment(lib,"pcre-d.lib")
    #pragma comment(lib,"pcrecpp-d.lib")
    #pragma comment(lib,"libxml2_a.lib")
    #pragma comment(lib,"libcollada14dom20-sd.lib")

    But now it say me that it can't start becouse application configuration is incorrect, whyle if i use only collada debug library it say me "Can't find MSVCR90.dll"...

    If i use original configuration in release mode it works, but i can't debug application

  4. #14
    Junior Member
    Join Date
    Apr 2008
    Posts
    12
    Quote Originally Posted by Vincent
    Anyone can help me?
    I've tried also using debug library

    Code :
     
    #pragma comment(lib,"zlib.lib")
    #pragma comment(lib,"wsock32.lib")
    #pragma comment(lib,"pcre-d.lib")
    #pragma comment(lib,"pcrecpp-d.lib")
    #pragma comment(lib,"libxml2_a.lib")
    #pragma comment(lib,"libcollada14dom20-sd.lib")

    But now it say me that it can't start becouse application configuration is incorrect, whyle if i use only collada debug library it say me "Can't find MSVCR90.dll"...

    If i use original configuration in release mode it works, but i can't debug application
    The debug versions of the perl compatible regex libraries were compiled using the wrong version of the run time.

    Use the non-debug versions instead.

    #pragma comment(lib,"pcre.lib")
    #pragma comment(lib,"pcrecpp.lib")

  5. #15
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    https://collada.org/public_forum/viewto ... 21a37fbf51

    I've got your same problem.

    If i try to link only collada_dom debug library, i receive "Can't find MSVCR90.dll"...

  6. #16
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Quote Originally Posted by cosmic_slop
    The debug versions of the perl compatible regex libraries were compiled using the wrong version of the run time.
    I don't think that's the case. IIRC they build against the debug dll like all the other debug stuff, but I have debug info turned off.
    Quote Originally Posted by cosmic_slop
    Use the non-debug versions instead.
    When I would try to link a debug app against the release version of PCRE I would get link errors. That's the only reason I provide a debug version of PCRE in the first place.

    Regardless I'll take a look tomorrow.

  7. #17
    Junior Member
    Join Date
    Apr 2008
    Posts
    12
    [quote=sthomas]
    Quote Originally Posted by cosmic_slop
    The debug versions of the perl compatible regex libraries were compiled using the wrong version of the run time.
    I don't think that's the case. IIRC they build against the debug dll like all the other debug stuff, but I have debug info turned off.
    Quote Originally Posted by "cosmic_slop":36ncuzha
    Use the non-debug versions instead.
    When I would try to link a debug app against the release version of PCRE I would get link errors. That's the only reason I provide a debug version of PCRE in the first place.

    Regardless I'll take a look tomorrow.[/quote:36ncuzha]

    Sorry, I asserted that too assuredly. But it is my theory nonetheless. Switching from the debug to the release pcre libraries was the only way I as able to execute my debug build (both of my application and COLLADA_RT).

    I'm eager to hear back from you once you look into it. These bugs have got me stumped.

  8. #18
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    I've resolved using dll version

  9. #19
    Junior Member
    Join Date
    Apr 2008
    Posts
    17
    I need to use the dll version too. Otherwise I have many linking problem, and impossible to found pcrecpp on the net.

Page 2 of 2 FirstFirst 12

Posting Permissions

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