Date: Fri, 26 Aug 1994 19:36:48 -0400 To: djgpp AT sun DOT soe DOT clarkson DOT edu From: goliver AT magnus DOT acs DOT ohio-state DOT edu (Guy L. Oliver) Subject: ofstream problem. I probably should wait a bit, to get some idea of what has already been discussed on this list, since the question that I would like to ask is probably already been brought up, put I really need an answer, so here goes: Yesterday, while trying to compile something similiar to the following on djgpp 2.6.0, I recieved several linker errors: // Code // #include int main(void) { ofstream fout("test"); fout << "This is a test"; fout.close(); } // ERRORS // C:\TMP>gcc test.cc -o test.out -lgpp 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 Now, I know what the errors are refering to, but not how to fix them, or if they are problems that are generally seen, or the result of something that I have done. Any takers??? Thanks... GLO ------------------------------------------------------------------------------ Guy Oliver The Ohio State University goliver AT cis DOT ohio-state DOT edu oliver AT cis DOT ohio-state DOT edu ------------------------------------------------------------------------------