• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Templates and linking problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Templates and linking problem


  • Subject: Templates and linking problem
  • From: Jo Meder <email@hidden>
  • Date: Wed, 3 Aug 2005 17:36:10 +1200

Hi,

I have a bunch of code I'm trying to get up and running on the Mac. I'm using Xcode 2.0 and GCC 4. One segment of code, which I'm currently building as a dylib, has some linking issues with a template class. Thanks to someone's tip about c++filt just recently I was able to establish which template instantiation was the problem. Basically this is the error :

ld: Undefined symbols:
__ZNK8trOctreeIPvE11BoundingBoxEv
__ZNK8trOctreeIPvE5ValueEv
__ZNK8trOctreeIPvE7IsValidEv
__ZN8trOctreeIPvE8SetValueERKS0_
__ZNK8trOctreeIPvE4SizeEv
__ZNK8trOctreeIPvE6CenterEv
/usr/bin/libtool: internal link edit command failed

All of those symbols are for a trOctree<void*> template class. For some reason these aren't all the functions in the class, others are used but they don't have link errors. Some of the above functions are called in the code.

I admit to not being particularly au fait with templates, apart from a few basic ones I've written myself and using the C++ standard library, so all this is rather perplexing. I'd greatly appreciate any suggestions about this.

The code compiles fine with VC++ 6. I should try VC++ 7 ( being the better C++ compiler ) and see what that thinks about it, I guess.

Regards,

Jo

--
Jo Meder
Planetside Software
email@hidden

Terragen for Macintosh
Photorealistic landscapes on your Mac
<http://www.planetside.co.uk/terragen/mac/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Xcode Allowing Editing of SCM Controlled Files
  • Next by Date: How to set up Subversion+SSH+Xcode
  • Previous by thread: Re: Xcode Allowing Editing of SCM Controlled Files
  • Next by thread: How to set up Subversion+SSH+Xcode
  • Index(es):
    • Date
    • Thread