On 22/12/13 05:11 AM, Roberta Rezende wrote:
Bonjour!

I’m trying now to use only my Mac. It is an OS 10.9.1
I’m having trouble …. :-/

so, wen i try the “make” command, I have

$ make PREFIX=ray-build
   CXX code/SeedingData/PathHandle.o
*code/SeedingData/PathHandle.cpp:66:9: **error: **use of overloaded operator 
'>>' is*
*      ambiguous (with operand types 'ostream' (aka 'basic_ostream<char>') and*
*      'const uint64_t' (aka 'const unsigned long long'))*
         stream >> handle.m_value;


Hi,

[Please use the mailing list.]

What compiler are you using ?


Can you apply the enclosed patch ?


cd Ray-2.3.0
patch -p1 < 0001-SeedingData-provide-prototypes-for-friend-functions.patch
make



-séb


*        ~~~~~~ ^  ~~~~~~~~~~~~~~*
*code/SeedingData/PathHandle.cpp:65:11: note: *candidate function
ostream & operator >>(ostream & stream, const PathHandle & handle) {
*          ^*
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       unsigned long long)
         stream >> handle.m_value;
*               ^*
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(int,
       unsigned __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, unsigned long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, unsigned long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, unsigned long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, unsigned long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, unsigned long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, unsigned long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       unsigned long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       unsigned __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate operator>>(long
       long, unsigned __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(__int128, unsigned __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned int, unsigned __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long, unsigned __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned long long, unsigned __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, long long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, __int128)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, unsigned int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, unsigned long)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate 
operator>>(long,
       int)
*code/SeedingData/PathHandle.cpp:66:9: note: *built-in candidate
       operator>>(unsigned __int128, unsigned __int128)
1 error generated.
make: *** [code/SeedingData/PathHandle.o] Error 1


Could you help me again??

Thank you

Roberta




On 10 Dec 2013, at 16:16, Roberta Rezende <roberta.reze...@icloud.com 
<mailto:roberta.reze...@icloud.com>> wrote:

merci :)

Le 10 déc. 2013 à 16:15, Sébastien Boisvert <s...@boisvert.info 
<mailto:s...@boisvert.info>> a écrit :


On 10/12/13 10:11 AM, Roberta Rezende wrote:
It compiles!!

Bonne chance !!

ty!
Le 10 déc. 2013 à 16:04, Sébastien Boisvert <s...@boisvert.info 
<mailto:s...@boisvert.info>> a écrit :
On 10/12/13 10:02 AM, Roberta Rezende wrote:
hi sebastien,
parlez vous français?
otherwise I'm new at this bioinformatics world
I'm trying to install Ray 2.3.0 but there is an error
after the make command i have this:
make[1]: entrant dans le répertoire « 
/home/roberta/Documents/Course/Ray-2.3.0/RayPlatform »
CXX RayPlatform/actors/Actor.o
RayPlatform/actors/Actor.cpp: In member function ‘void Actor::send(int, 
Message*)’:
RayPlatform/actors/Actor.cpp:54:52: erreur: ‘memcpy’ was not declared in this 
scope
make[1]: *** [RayPlatform/actors/Actor.o] Erreur 1
make[1]: quittant le répertoire « 
/home/roberta/Documents/Course/Ray-2.3.0/RayPlatform »
make: *** [RayPlatform/libRayPlatform.a] Erreur 2
I found it by you
Yes, this is a known problem with 2.3.0. Rob Egan fixed this and I merged his
patch. Basically, Actor.cpp needed
to include <string.h>.
Could you help me?
You can fix this error by adding
#include <string.h>
at the top of RayPlatform/actors/Actor.cpp



>From 2e60677e5663f645ab5a28e9afe93c35dec8ea24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Boisvert?= <sebastien.boisver...@ulaval.ca>
Date: Fri, 27 Dec 2013 21:38:30 -0500
Subject: [PATCH] SeedingData: provide prototypes for friend functions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

These 2 functions did not have prototypes, but were friends of
the class PathHandle.

Reported-by: Roberta Rezende <roberta.reze...@icloud.com>
Signed-off-by: Sébastien Boisvert <sebastien.boisver...@ulaval.ca>
---
 code/SeedingData/PathHandle.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/code/SeedingData/PathHandle.h b/code/SeedingData/PathHandle.h
index 6c29b36..fa5724c 100644
--- a/code/SeedingData/PathHandle.h
+++ b/code/SeedingData/PathHandle.h
@@ -55,6 +55,7 @@ public:
 	uint64_t operator + (uint64_t value);
 	uint64_t operator % (uint64_t value);
 
+	// add these 2 as friends.
 	friend ostream & operator <<(ostream & stream, const PathHandle & handle);
 	friend ostream & operator >>(ostream & stream, const PathHandle & handle);
 
@@ -66,4 +67,10 @@ public:
 	int getRequiredNumberOfBytes() const;
 };
 
+/**
+ * prototype for operators.
+ */
+ostream & operator <<(ostream & stream, const PathHandle & handle);
+ostream & operator >>(ostream & stream, const PathHandle & handle);
+
 #endif
-- 
1.8.1.4

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Denovoassembler-users mailing list
Denovoassembler-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/denovoassembler-users

Reply via email to