C++ Experiences on LinkSys WRT54GL
Hi,
I just got a new WRT54GL router which is just a repackaged WRT54 v4 with "L" for Linux.
I'm trying to run an embedded C++ HTTP daemon similar to the default httpd one included by default but mines supports WebDAV (Web Distributed Authoring and Version) protocol (foot print is ~394 KB stripped).
I was able to compile using the mipsel-linux-g++ compiler, but I'm getting compile errors when using the default mipsel-uclibc-gcc v0.9.19 since there's no C++ STL, such as multimap, vector, etc.
e.g. Comparing C verus C++ Hello World program running on WRT54GL v4.30.1 (running telnetd):
# test1 is a C++ Hello World program
test1: ELF 32-bit LSB MIPS-I executable, MIPS, version 1 (SYSV), for GNU/Linux 2.2.15, dynamically linked, stripped
# test2 is a C Hello World program
test2: ELF 32-bit LSB MIPS-I executable, MIPS, version 1 (SYSV), dynamically linked, stripped
Running it on the WRT54GL v4 via telnet:
# ./test1 (C++ version)
./test1: not found
# ./test2 (C version)
Hello World!
I know that there's a version of uclibc++ tool v0.1.12. Has anyone been able to compile C++ program using uclibc++ and run it on the WRT54G/GL v4 firmware.
I just got a new WRT54GL router which is just a repackaged WRT54 v4 with "L" for Linux.
I'm trying to run an embedded C++ HTTP daemon similar to the default httpd one included by default but mines supports WebDAV (Web Distributed Authoring and Version) protocol (foot print is ~394 KB stripped).
I was able to compile using the mipsel-linux-g++ compiler, but I'm getting compile errors when using the default mipsel-uclibc-gcc v0.9.19 since there's no C++ STL, such as multimap, vector, etc.
e.g. Comparing C verus C++ Hello World program running on WRT54GL v4.30.1 (running telnetd):
# test1 is a C++ Hello World program
test1: ELF 32-bit LSB MIPS-I executable, MIPS, version 1 (SYSV), for GNU/Linux 2.2.15, dynamically linked, stripped
# test2 is a C Hello World program
test2: ELF 32-bit LSB MIPS-I executable, MIPS, version 1 (SYSV), dynamically linked, stripped
Running it on the WRT54GL v4 via telnet:
# ./test1 (C++ version)
./test1: not found
# ./test2 (C version)
Hello World!
I know that there's a version of uclibc++ tool v0.1.12. Has anyone been able to compile C++ program using uclibc++ and run it on the WRT54G/GL v4 firmware.