delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/08/28/04:00:28

From: "Alex Vinokur" <alexvn AT bigfoot DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: gpp -pg : cannot find -lstdc++
Date: Wed, 28 Aug 2002 10:59:13 +0200
Lines: 111
Message-ID: <akhvt5$1hsuqi$1@ID-79865.news.dfncis.de>
NNTP-Posting-Host: pop03-2-ras5-p238.barak.net.il (212.150.100.238)
X-Trace: fu-berlin.de 1030521575 52329298 212.150.100.238 (16 [79865])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

###############
Windows 2000
DJGPP 2.03
gcc/gpp version 3.1
###############

I tried to compile my source with gpp -pg :
gpp -pg source.cpp

However linkage failed.

What is wrong ?

P.S.
      gpp source.cpp  has no problem.
      gcc -pg source.cpp  has no problem.



######### C++ code : BEGIN #########
// File ttt5.cpp

int main ()
{
  return 0;
}

######### C++ code : END ###########


######### info faq : BEGIN #########

[---omitted---]

13.1 How to profile a DJGPP program
===================================

_*Q*: How can I profile my program to see where it spends most of its run
time?_


*A*:  DJGPP includes a profiling facility.  To use it, compile and link with
`-pg' option, run your program as you usually would, then run a program
called `gprof':

      gprof myprog.exe

(change `myprog.exe' to whatever name your program is).  This will print an
execution profile.  You can now look at the profile and try to optimize the
functions which take a large proportion of the execution time.

[---omitted---]

######### info faq : END ###########





######### Compilation : BEGIN #########

%gpp -pg ttt5.cpp

Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disab
le-nls
Thread model: single
gcc version 3.1
 c:/djgpp/lib/gcc-lib/djgpp/3.1/cc1plus.exe -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -
D__GNUC_PATCHLEVEL__=0 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS
__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__NO_INLIN
E__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D_
_tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros
c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver ttt5.cpp -D__GNUG__=3 -D__DEPRECATED -D
__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase ttt5.cpp -version -p -o c:
/djgpp/tmp/ccGghwUV.s
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
GNU C++ version 3.1 (djgpp)
 compiled by GNU C version 3.1.
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lang/cxx-v31
 c:/djgpp/lang/cxx-v31/djgpp
 c:/djgpp/lang/cxx-v31/backward
 c:/djgpp/lib/gcc-lib/djgpp/3.1/include
 c:/djgpp/include
End of search list.
 c:/djgpp/bin/as.exe --traditional-format -o c:/djgpp/tmp/ccieghSN.o c:/djgpp/tm
p/ccGghwUV.s
 c:/djgpp/lib/gcc-lib/djgpp/3.1/collect2.exe c:/djgpp/lib/gcrt0.o -Lc:/djgpp/lib
/gcc-lib/djgpp/3.1 -Lc:/djgpp/bin -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.
1/../../.. c:/djgpp/tmp/ccieghSN.o -lstdc++ -lm -lgcc -lc -lgcc -Tdjgpp-x.djl
c:/djgpp/bin/ld.exe: cannot find -lstdc++
collect2: ld returned 1 exit status


######### Compilation : END ###########


   ==================
   Alex Vinokur
     mailto:alexvn AT go DOT to
     http://up.to/alexvn
   ==================






- Raw text -


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