Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> List-Archive: <http://sourceware.cygnus.com/ml/cygwin/> List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com> List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Fri, 01 Oct 1999 14:33:33 -0400 From: "Harold G. Andrews II" <handrews AT draper DOT com> Subject: A newbie question about using STL with B20 To: Cygwin <cygwin AT sourceware DOT cygnus DOT com> Message-id: <002d01bf0c3b$77411160$9952668c@draper.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26 Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Hello all, I'm new to both cygwin and STL. I tried looking in the mail archives to find some resolution to this, but none of the problems I found in there seemed to address what I'm seeing here (though it's entirely possible that I didn't completely understand the contents of some of those archived messages). So, with that in mind... I try compiling the following program (which is using STL) in B20, under WinNT (SP5) by using gcc version 2.95: ================================== // stl_test.cpp #include <vector> using namespace std; void main(void) { vector<double> t1(3); } ================================== and it generates the following error message during compilation: ================================== g++ stl_test.cpp /Program Files/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9 5/libstdc++.a(iostream.o)(.text+0x114): undefined reference to `_imp___ctype_' /Program Files/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9 5/libstdc++.a(iostream.o)(.text+0x4d1): undefined reference to `_imp___ctype_' /Program Files/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9 5/libstdc++.a(iovfscanf.o)(.text+0x60): undefined reference to `_imp___ctype_' /Program Files/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9 5/libstdc++.a(iovfscanf.o)(.text+0x8d): undefined reference to `_imp___ctype_' /Program Files/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9 5/libstdc++.a(iovfscanf.o)(.text+0x588): undefined reference to `_imp___ctype_' /Program Files/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9 5/libstdc++.a(iovfscanf.o)(.text+0x5dc): more undefined references to `_imp___ctype_' follow collect2: ld returned 1 exit status ================================== It compiles fine in MSVC 6.0 and Linux (Mandrake release 6 on kernel 2.2.9-27mdk using pgcc-2.91.66). Any insights would be very helpful? -Andy -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com