delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/10/21:54:31

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
From: JSONCRAIG AT aol DOT com
Message-ID: <0.67fd80e4.255b89b1@aol.com>
Date: Wed, 10 Nov 1999 21:53:37 EST
Subject: GCC 2.95.2 + C++ + -pg = ?
To: cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0
X-Mailer: AOL 4.0 for Windows 95 sub 10

I just downloaded and unpacked the GCC-2.95.2 Mingw32-crtdll release.  I 
tried to compile a simple program:

#include <iostream>
using namespace std;
int main()
{
cout << "Test" << endl; 
return 0;
}

    c++ -o test.exe test.cpp
works like a charm.  But then, I decided to try out the profiling:
    C++ -o test.exe -pg test.cpp
during linking:


linking:C:\GCC-29~1.2\BIN\..\lib\gcc-lib\i386-mingw32\2.95.2\libstdc++.a(iostream.o)(.text$__
ls__7ostreamPFR7ostream_R7ostream+0x0): multiple definition of 
`ostream::operator<<(ostream &(*)(ostream &))'

&))'C:\WINDOWS\TEMP\ccriT9fb.o(.text$__ls__7ostreamPFR7ostream_R7ostream+0x0):test.cpp: first defined here

hereC:\GCC-29~1.2\BIN\..\lib\gcc-lib\i386-mingw32\2.95.2\libstdc++.a(iostream.o)(.text$__tf11_ios_fields+0x0): multiple definition of 
`_ios_fields type_info function'
C:\WINDOWS\TEMP\ccriT9fb.o(.text$__tf11_ios_fields+0x0):test.cpp: first 
defined here

and so on and so forth.
c++ -v = 
Reading specs from C:\GCC-29~1.2\BIN\..\lib\gcc-lib\i386-mingw32\2.95.2\specs
gcc version 2.95.2 19991024 (release)
on Windows 95.

Am I using the option wrong or is there something wrong with profiling and 
the C++ libs?

Jason Craig

--
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