cvs.delorie.com/djgpp/bugs/show.cgi | search |
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.
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 c: 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!
This will be fixed in the next release.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |