ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ccrtp-devel] [Patch] Build Problems with gcc-4.3


From: Andreas Thienemann
Subject: [Ccrtp-devel] [Patch] Build Problems with gcc-4.3
Date: Thu, 07 Feb 2008 09:25:20 +0100
User-agent: Thunderbird 1.5.0.12 (X11/20071129)

Hello,

Building the current version of ccrtp-1.6.0 on gcc-4.3 fails with the following error:

control.cpp: In member function 'virtual timeval ost::QueueRTCPManager::computeRTCPInterval()':
control.cpp:729: error: 'rand' was not declared in this scope
control.cpp:729: error: 'RAND_MAX' was not declared in this scope
make[3]: *** [control.lo] Error 1

This can be easily fixed by including cstdlib.

Easyfix patch is attached.

regards,
 andreas
diff -up ccrtp-1.6.0/src/control.cpp.orig ccrtp-1.6.0/src/control.cpp
--- ccrtp-1.6.0/src/control.cpp.orig    2008-02-07 08:49:22.000000000 +0100
+++ ccrtp-1.6.0/src/control.cpp 2008-02-07 08:50:09.000000000 +0100
@@ -43,6 +43,7 @@
 
 #include "private.h"
 #include <ccrtp/cqueue.h>
+#include <cstdlib>
 
 #ifdef  CCXX_NAMESPACES
 namespace ost {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]