Date: Wed, 12 Oct 94 10:07:47 EDT From: chrisa AT meaddata DOT com (Chris Anderson) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: G++ compiler messages USING: 112M2 I am working a program that uses the Regex class. However, I am running into a problem. When I compile and link I get several messages from the linker: stdstrbufs.cc(.data+0x0): multiple definition of `IO_stdin_' stdfiles.c(.data+0x0): first defined here stdstrbufs.cc(.data+0x50): multiple definition of `IO_stdout_' stdfiles.c(.data+0x50): first defined here stdstrbufs.cc(.data+0xa0): multiple definition of `IO_stderr_' stdfiles.c(.data+0xa0): first defined here stdstrbufs.cc(.data+0x1ec): multiple definition of `IO_list_all_' stdfiles.c(.data+0xf0): first defined here I am compiling with: gcc -v -g -c regex.cc -o regex.o gcc regex.o -o regex -lgpp Here is a program fragment: #include #include #include #include #include <_string.h> #include <_regex.h> main() {.. findRegex(); ...} int findRegex() {...} I am a C programmer who is trying to learn C++ so bear with me if this is a naive question. Thanks as always _______________________________________________________________ Chris Anderson Mead Data Central PD&O Product Analyst 9473 Springboro Pike chrisa AT meaddata DOT com Miamisburg, OH 45342 http://www.meaddata.com/~chrisa (513) 865-1844 _______________________________________________________________