Bug 000077

When Created: 04/15/1996 08:23:13
Against DJGPP version: 2.00
By whom:
Abstract: g++ omits the libstdcx.a library
g++ (gxx) doesn't supply the parameter '-lstdcx' to gcc. I guess this isn't,
strictly speaking, a bug, but it does make compiling small C++ programs more
cumbersome than it needs to be.

Workaround added: 04/15/1996 08:44:00
By whom:
I worked around this problem by copying the .o files from libstdcx.a into
libgpp.a which is included by g++.

Here's a batch file to do it:
rem The following two lines depend on your installation
cd \djgpp\lib (depends on your installation)

rem * It is important to use a temporary directory as the
rem * lib directory has .o files in it.
md temp
copy libstdcx.a temp
copy libgpp.a temp
cd temp

ar -x libstdcx.a
ar -rs libgpp.a *.o

move libgpp.a ..
del *.*
cd ..
rd temp
I hope this works for you!

Note added: 04/30/1996 21:45:10
By whom:
This will be fixed in the next release.

Fixed in version 2.01 on 04/30/1996 21:46:19
By whom:

  webmaster     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010