Linking issue under AIX

Hello everyone:
I've made a program for AIX, but it's unable to run, by running ld I got the following screen:

ld MyApp

ld: 0711-317 ERROR: Undefined symbol: getenv
ld: 0711-317 ERROR: Undefined symbol: _iob
ld: 0711-317 ERROR: Undefined symbol: fprintf
ld: 0711-317 ERROR: Undefined symbol: fflush
ld: 0711-317 ERROR: Undefined symbol: malloc
ld: 0711-317 ERROR: Undefined symbol: atexit
ld: 0711-317 ERROR: Undefined symbol: exit
ld: 0711-317 ERROR: Undefined symbol: __CleanupCatch
ld: 0711-317 ERROR: Undefined symbol: __run_final_dtors
ld: 0711-317 ERROR: Undefined symbol: __crt0v
ld: 0711-317 ERROR: Undefined symbol: __malloc_user_defined_name
ld: 0711-317 ERROR: Undefined symbol: __pthread
ld: 0711-317 ERROR: Undefined symbol: __pth_init
ld: 0711-317 ERROR: Undefined symbol: __mod_init
...

the -lC and -bdynamic flags are included in the linker options and the LIBPATH variable is correctly defined, thanks in advance for any advice

edgarvm,

Is this a C program? Can you please post your #include's as well as the command line parameters for your compiler?

Thanks,
Dan Chase