Link error collada framework mac port

Apprentice
Posts: 13
Joined: 2008.03
Post: #1
Hya.

I have tried to manually build the collada dom from the svn repository but failed. I gave up on it an installed the collada dom frameworks using mac ports. This at least solved a number of issues concerning incompatible architectures. However, now I have a link error concerning a missing destructor implementation:

"daeSidRefCache::~daeSidRefCache()"

Code:
#include <iostream>
#include <dae.h>

int main (int argc, const char * argv[])
{

    DAE dae;
    
    // insert code here...
    std::cout << "Hello, World!\n";
    return 0;
}

I hope someone can help me....

Cheerio...
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
You need to add the library/framework to your project.
Quote this message in a reply
Apprentice
Posts: 13
Joined: 2008.03
Post: #3
I have added the Collada14Dom.framework using the Build Phases tab: Link Binary with libraries.

Looking at the include file for the collada framework where the daeSidRefCache is defined, there is indeed NO definition for a destructor. But, correct me if I'm wrong, but the compiler should add a default destructor to a class if none is defined, right?

If that's the case, something has gone wrong installing the macports version of collada? I can't find any leads on that though.

Thanks.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
if you run

Code:
nm Collada14Dom.framework/Collada14Dom | c++filt | open -f

does it list that symbol?

If it does, your framework is not being linked correctly and I'm interested to see the detailed build log; if not, I'm interested to see the header and the detailed build log.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Cannot link LiveSDK framework SparkyNZ 2 1,985 Dec 19, 2012 06:28 PM
Last Post: SparkyNZ
  Collada dom BBBert 11 6,144 Dec 28, 2011 01:17 AM
Last Post: BBBert
  a link error,please help sakiel 2 3,420 Aug 2, 2007 12:11 AM
Last Post: sakiel
  'Unidentified error' error in Xcode scgames 2 3,594 Jun 10, 2006 01:38 AM
Last Post: scgames