Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <2.2.32.20001212161941.006c932c@198.102.228.210> X-Sender: brinkman AT 198 DOT 102 DOT 228 DOT 210 X-Mailer: Windows Eudora Pro Version 2.2 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 12 Dec 2000 11:19:41 -0500 To: cygwin AT cygwin DOT com From: Donald Brinkman Subject: GCC won't link/Interface question I have been working on porting an IRIX application into a windows environment, and I am using Cygwin for the creation of a DLL. I have managed to work through all the kinks in compiler differences, and all of my source now compiles to the object level. Before I try to construct the library, I want to make sure that everything still works the way it should, so I fetched over a test program that uses the functions that will be in the library and tried to compile it with the following command: gcc foobar.c++ -I ./ -w The compiler spits out a bunch of warnings, but creates an object file just fine. On link, though, I get a whole bunch of the following: r2.c++: undefined reference to `omiCoordinates::col(void) const' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xa4):TestPSISolve r2.c++: undefined reference to `omiCoordinates::row(int)' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xac):TestPSISolve r2.c++: undefined reference to `omiCoordinates::col(int)' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xb4):TestPSISolve r2.c++: undefined reference to `omiCoordinates::DistanceTo(omiCoordinates const &) const' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xbc):TestPSISolve r2.c++: undefined reference to `omiCoordinates::Transform(float, float, flo at, float, float)' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xc4):TestPSISolve r2.c++: undefined reference to `omiCoordinates::streamout(ostream &) const' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xcc):TestPSISolve r2.c++: undefined reference to `omiCoordinates::streamin(istream &)' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xd4):TestPSISolve r2.c++: undefined reference to `omiCoordinates::streamout(omiVOStream &) co nst' /cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xdc):TestPSISolve r2.c++: undefined reference to `omiCoordinates::streamin(omiVIStream &)' collect2: ld returned 1 exit status I know that this is sort of a gcc problem, but I thought that the strange path in the error might indicate that it is something quirky with Cygwin. I can find no such directory on any of my drives. Does anyone know what is going on here? Another, perhaps easier question: Is there a good way to dump gcc error messages to an ASCII file? Or is there a browser with Cygwin that allows you to scroll backwards? DOS blows. Thanks in advance for any help. Donald Brinkman -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com