I'm writing a C++ program that has to use the syslog facility. The development environment is Debian hamm with libc6 version 2.0.7pre1-2 and libg++272 version 2.7.2.8-0.1. If I link my C++ program without any g++ libraries syslog works. If I link my C++ program with '-lstdc++' syslog does not work at all...
Here is a sample program I wrote to demonstrate the bug : test-syslog.cc: #include <syslog.h> int main(int argc, char **argv) { if (argc == 1) return 0; openlog(argv[0], LOG_PID, 0); for (++argv ; *argv ; ++argv) syslog(LOG_LOCAL0 | LOG_NOTICE, *argv); return 0; } If it is compiled with 'gcc -o test-syslog test-syslog.cc' the program will correctly write its parameters to the syslog files. If I use the command 'gcc -o test-syslog test-syslog.cc -lstdc++' it won't... Can anyone tell me where the problem is and how I can solve it? Is this a libc6 or libg++ bug? Thanks. -- Farzad FARID Administrateur Reseau Publicis Technology -- E-mail the word "unsubscribe" to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .