New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Issue building program using Xcode


Post Reply New Thread Subscribe

 
Thread Tools
Timo116

 
Member Since: Jul 10, 2012
Posts: 3
Timo116 is on a distinguished road

Timo116 is offline
I'm trying to build a demo program, but the code for it is not properly compiling. Specifically, when I try to build it, it has a problem with the sort function, saying "Call to function 'sqrt' that is neither visible in the template definition nor found by argument-dependent lookup". What's also odd is there is one other instance of the sqrt function that is not causing an issue.

Here is the code that's causing an issue:

template <class T, unsigned int C>
T length(const vector_fixed<T,C> & a) {
return (T) sqrt(length2(a));
}

And here is the code that also includes sqrt but does not cause an issue:
T two_norm() const {
return sqrt(dot_product(*this));
}

Any help would be greatly appreciated. Thanks!
QUOTE Thanks

Post Reply New Thread Subscribe


« I/O Kit & iPhone file system access via USB | Linker Error Building OpenCV »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
FLTK and Xcode 4 Bubbagump00 OS X - Development and Darwin 0 03-19-2012 01:07 PM
Apple releases Mac updates for iPhoto, iTunes, GarageBand and Xcode OneMoreThing... Apple Rumors and Reports 0 03-07-2012 06:10 PM
xcode: Allocated memory freed upon C++ program end? TheGreenLantern OS X - Development and Darwin 0 03-31-2011 07:19 PM
10.6.2 released cwa107 Apple Rumors and Reports 51 12-12-2009 06:12 AM
10.5.2 is out! pastorjay OS X - Operating System 105 02-14-2008 11:06 AM

All times are GMT -4. The time now is 05:50 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?