delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/12/11:22:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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
Date: Tue, 12 Dec 2000 11:19:41 -0500
To: cygwin AT cygwin DOT com
From: Donald Brinkman <brinkman AT omi DOT com>
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<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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019