Hi,
The program's ( attached in the mail ) linking stage comes up with error message ,
"bkmem_alloc" is undefined.
Which library should be linked to this program ?
Thanks
Manoj Nayak
Sun Streaming System
#include <malloc.h>
#include<stdio.h>
void *bkmem_alloc(size_t);
void bkmem_free(void *, size_t);
void
fastMallocTest( void ) {
char *mem;
int size = 3;
int count = 0;
while ( count < 10000000 ) {
mem = (char *)bkmem_alloc( 10000 );
count ++;
bkmem_free( mem , 10000);
}
}
int main() {
printf("Inside main program");
fastMallocTest();
return 0;
}
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code