![]() |
|
![]() |
1. You need to include the STLport-4.0\stlport directory BEFORE the MSVC include directories. It's probably safest to first exclude all the standard include files, then use something like the following: c:\stlport-4.0\stlport,..\..\Include,..\..\Include\Internal,$(PLATFORMSDK_ROOT) \include,$(VISUALSTUDIO_ROOT)\include 2. You need to link with the libc.lib-rim library AFTER the RIM .objs. For example: ..\..\Lib\OsEntry.obj ..\..\Lib\RimOs.lib ..\..\Lib\ribbon.lib ..\..\Lib\UI32.lib c:\libc.lib-rim 3. You need to include the following definitions. ----------------------------- extern "C" { #include <stdarg.h> void abort() { void _assert(void*, void*, unsigned) { int _fltused = 0; void free(void* f) { void* malloc(size_t t) { void* realloc(void* v, size_t t) { void exit(int s) { int printf (const char *format, ...) #if 0 FILE _iob[256]; int fileno(FILE* f) { int PASCAL FAR __WSAFDIsSet(SOCKET fd, fd_set
FAR* set) { int fprintf (FILE* fp, const char *format, ...) size_t fread(void*, size_t, size_t, FILE*) { size_t fwrite(const void *, size_t, size_t, FILE
*) { int fflush(FILE*) { int getc(FILE* f) { int putchar(int i) { int* _errno() { } |
|