[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ccrtp-devel] from rtppkt.cpp:44: ... include/cc++/address.h:240: error:
From: |
Chuck Harrison |
Subject: |
[Ccrtp-devel] from rtppkt.cpp:44: ... include/cc++/address.h:240: error: extra '; ' |
Date: |
Mon, 20 Nov 2006 19:37:18 -0800 |
Working on the embedded mips install for openWRT...
[...]
make[6]: Entering directory `/home/trunk/build_mipsel/ccrtp-1.5.0/src'
/bin/sh ../libtool --tag=CXX --mode=compile mipsel-linux-uclibc-g++
-DHAVE_CONFIG_H -I. -I. -I.
-I/home/trunk/staging_dir_mipsel/usr/include
-I/home/trunk/staging_dir_mipsel/include -Wall -ansi -pedantic
-fno-builtin -fno-rtti -nostdinc++
-I/home/trunk/staging_dir_mipsel/include/c++/3.4.6
-I/home/trunk/staging_dir_mipsel/include/c++/3.4.6/mipsel-linux-uclibc
-D_GNU_SOURCE -I/home/trunk/build_mipsel/commoncpp2-1.5.2/include -c
-o rtppkt.lo rtppkt.cpp
mipsel-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I.
-I/home/trunk/staging_dir_mipsel/usr/include
-I/home/trunk/staging_dir_mipsel/include -Wall -ansi -pedantic
-fno-builtin -fno-rtti -nostdinc++
-I/home/trunk/staging_dir_mipsel/include/c++/3.4.6
-I/home/trunk/staging_dir_mipsel/include/c++/3.4.6/mipsel-linux-uclibc
-D_GNU_SOURCE -I/home/trunk/build_mipsel/commoncpp2-1.5.2/include -c
rtppkt.cpp -fPIC -DPIC -o .libs/rtppkt.o
In file included from
/home/trunk/build_mipsel/commoncpp2-1.5.2/include/cc++/socket.h:47,
from private.h:90,
from rtppkt.cpp:44:
/home/trunk/build_mipsel/commoncpp2-1.5.2/include/cc++/address.h:240:
error: extra `;'
/home/trunk/build_mipsel/commoncpp2-1.5.2/include/cc++/address.h:243:
error: extra `;'
/home/trunk/build_mipsel/commoncpp2-1.5.2/include/cc++/address.h:328:
error: extra `;'
/home/trunk/build_mipsel/commoncpp2-1.5.2/include/cc++/address.h:331:
error: extra `;'
make[6]: *** [rtppkt.lo] Error 1
make[6]: Leaving directory `/home/trunk/build_mipsel/ccrtp-1.5.0/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/trunk/build_mipsel/ccrtp-1.5.0/src'
Needless to say, address.h looks fine; after all,
libccgnu2 compiled against it without errors.
address@hidden:/home/trunk$ less -N
build_mipsel/commoncpp2-1.5.2/include/cc++/address.h
[...]
165 class __EXPORT IPV4Cidr
166 {
167 protected:
168 struct in_addr netmask, network;
169
170 unsigned getMask(const char *cp);
171 public:
[...]
222 /**
223 * See if a socket address is a member of this cidr's
network.
224 *
225 * @param saddr pointer to test.
226 * @return true if member of cidr.
227 */
228 bool isMember(struct sockaddr *saddr);
229
230 /**
231 * See if a low level address object is a member of
this cidr's net.
232 *
233 * @param inaddr object to test.
234 * @return true if member of cidr.
235 */
236 bool isMember(struct in_addr &inaddr);
237 };
238
239 inline bool operator==(struct sockaddr *sa, IPV4Cidr &cidr)
240 {return cidr.isMember(sa);};
241
242 inline bool operator==(struct in_addr &a, IPV4Cidr &cidr)
243 {return cidr.isMember(a);};
244
So, huh?? Any idea what could cause this?
Cheers,
Chuck