PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

STL and compiling

In order to initially get PF working, I downloaded the stlport stuff and installed it per the installation...

PF compiled fine... have been using it a lot.

But now I decided to use a "vector" from STL and I can build, but can't link - "unresolved external symbol "private: static void * __cdecl _STL::__malloc_alloc<0>..."

STL doesn't need to be compiled into a lib, does it? Or is it something in the stl config header?

BTW, I did find another STL here: http://www.syncdata.it/stlce/index.html
And it works as expected... but why?
i'm sure i had the same problem long ago. i think you need to use the 4+ version of stl in order to use the containers and iterators. i'm pretty sure this problem had been addressed before. try searching the threads.
Just in case someone is looking for an answer, it was answered in another thread in the general dev:
http://www.pocketmatrix.com/forums/view ... hp?t=13518

Basically, you need to define the following and it links fine:
#define __STL_NO_IOSTREAMS 1
#define _STLP_NO_NEW_IOSTREAMS 1