C library not found?

Hi

I have a problem with ld (QNX RTP, gcc)

There is a simle program main.cpp

#include <assert.h>
#include <string.h>

… some code

gcc -c … works fine but

ld sad
undefined symbol __assert
undefined symbol __memset

etc.

Wher is the C Standard Library?
Please, help

Dmitri

With what command do you link?
Do you link to libc.so? (-lc option)
Markus

“Dmitri Sidelnikov” <helgibull@himike.tomsknet.ru> wrote in message
news:9bedcu$da7$1@inn.qnx.com

Hi

I have a problem with ld (QNX RTP, gcc)

There is a simle program main.cpp

#include <assert.h
#include <string.h

… some code

gcc -c … works fine but

ld sad
undefined symbol __assert
undefined symbol __memset

etc.

Wher is the C Standard Library?
Please, help

Dmitri

“Markus Loffler” <loffler@ces.clemson.edu> wrote in message
news:9bfppo$8qh$1@inn.qnx.com

With what command do you link?
Do you link to libc.so? (-lc option)
Markus

Yes, I do. I link with -lc and stdc++. But some functions are still not
found.
Are there wcslen() and other w* functions in libc?
if not, where are they?

Please help me.
Dmitri