On 30/04/12 22:50, Matěj Cepl wrote:
> On 30.4.2012 19:44, Greg Hellings wrote:
>> They worked for me a few weeks ago, but I only ever build from SVN.
> 
> on this more or less Fedora 17, I get this error when running make on
> trunk:
> 
> What I am doing wrong?
> 

You are using gcc-4.7. See attached patch. Bindings are broken. I do not
have a fix.

-- 
Regards,
Dmitrijs.
Partially fix ftbfs with gcc-4.7
Index: sword-1.6.2+dfsg/include/multimapwdef.h
===================================================================
--- sword-1.6.2+dfsg.orig/include/multimapwdef.h	2004-05-04 21:01:39.000000000 +0000
+++ sword-1.6.2+dfsg/include/multimapwdef.h	2012-04-16 20:07:17.256834065 +0000
@@ -19,14 +19,14 @@
 	}
 
 	T& operator[](const Key& k) {
-		if (find(k) == this->end()) {
-			insert(value_type(k, T()));
+		if (this->find(k) == this->end()) {
+			this->insert(value_type(k, T()));
 		}
-		return (*(find(k))).second;
+		return (*(this->find(k))).second;
 	}
 	bool has(const Key& k, const T &val) const {
-		typename std::multimap<Key, T, Compare>::const_iterator start = lower_bound(k);
-		typename std::multimap<Key, T, Compare>::const_iterator end = upper_bound(k);
+		typename std::multimap<Key, T, Compare>::const_iterator start = this->lower_bound(k);
+		typename std::multimap<Key, T, Compare>::const_iterator end = this->upper_bound(k);
 		for (; start!=end; start++) {
 			if (start->second == val)
 				return true;

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to