Re: problem with linkage

2006-04-16 Thread k0mp
ok thanks ___ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus

Re: problem with linkage

2006-04-16 Thread Paul Pluzhnikov
"k0mp" <[EMAIL PROTECTED]> writes: > I've got a problem to compile my program (on Linux). No, you didn't. You got a problem *linking* your program. > /tmp/ccfRzJFM.o:(.bss+0x40): multiple definition of `program_name' The problem is as follows: in eht_lib.h, you have: char *program_name; Whe

problem with linkage

2006-04-16 Thread k0mp
Hi, I've got a problem to compile my program (on Linux). It's made up of a library of functions : eth_lib.cc (+ the headers eth_lib.h and inet_str.h) and a main file test.cc test.cc has the following includes : #include #include #include #include "eth_lib.h" eth_lib.cc has the following inclu