From: <bma...@ha...> - 2002-03-22 22:17:49
|
hi all, I am having trouble linking with the library libcrypt.a, when I link a C file I dont have any problem: gcc -o test test.c -lcrypt But with the same example(test.c) if I compile and link it as a CPP file a get un undefined reference for function crypt(char *,char *) . gcc -o test test.cpp -lcrypt Does anyone know what I am doing wrong! thanks for your help bye |