Trying to port something SEKRIT but im running into some problems with C++

I've installed everything related to c++ In cydia
configure:2457: checking for C++ compiler version
configure:2460: g++ --version </dev/null >&5
g++ (GCC) 4.2.1 (Based on Apple Inc. build 5555)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2463: $? = 0
configure:2465: g++ -v </dev/null >&5
Using built-in specs.
Target: arm-apple-darwin9
Configured with: ../llvm-gcc-4.2/configure --build=x86_64-unknown-linux-gnu --host=arm-apple-darwin9 --enable-static=no --enable-shared=yes --prefix=/usr --localstatedir=/var/cache/iphone-gcc --enable-languages=c,c++,objc,obj-c++ --enable-wchar_t=no --with-gxx-include-dir=/usr/include/c++/4.0.0
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5555)
configure:2468: $? = 0
configure:2470: g++ -V </dev/null >&5
g++: '-V' option must have argument
configure:2473: $? = 1
configure:2497: checking for C++ compiler default output
configure:2500: g++ conftest.cc >&5
ld: library not found for -lstdc++
collect2: ld returned 1 exit status
configure:2503: $? = 1
Any helps :3? <3