Mail Archives: cygwin/2000/12/12/11:22:25
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<int>::col(void) const'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xa4):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::row(int)'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xac):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::col(int)'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xb4):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::DistanceTo(omiCoordinates<i
nt> const &) const'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xbc):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::Transform(float, float, flo
at, float, float)'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xc4):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::streamout(ostream &) const'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xcc):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::streamin(istream &)'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xd4):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::streamout(omiVOStream &) co
nst'
/cygdrive/c/windows/TEMP/ccIsuZji.o(.data$_vt$13omiCoordinate+0xdc):TestPSISolve
r2.c++: undefined reference to `omiCoordinates<int>::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
- Raw text -