Mail Archives: djgpp/1994/08/11/07:41:07
> What's going on with libg++ 2.6.0 ? The following simple program:
>
> #include <_string.h>
>
> main()
> {
> String s("Hello?");
> }
>
> when compiled as gcc strtst.cc -o strtst -lgpp, gives undefined
> references:
>
I found this problem too. Funny thing is, when I tested the pre-release
of 1.12, this didn't occur. Anyway, I found that it could be solved by
putting:
#pragma implementation "_string.h"
in my program, or by commenting out `#pragma interface' in _string.h. We
shouldn't have to do this, should we?
Any ideas?
--
Paul Harness, | Internet: gapa83 AT udcf DOT gla DOT ac DOT uk
Department of Physics and Astronomy, |
University of Glasgow, | Tel +44-41-339-8855 ext 8359
Glasgow, G12 8QQ, SCOTLAND. | Fax +44-41-334-9029
- Raw text -