Mail Archives: djgpp/1998/04/16/03:33:33
Carsten Rohde wrote:
>
> Once again vector.h...
>
> I am rather shure that I installed all files correctly.
>
> So here are :
> - the sourcecode and
> - the reported errors
>
> *********** the source ( please try this at home ;-)**************
> #include<vector>
> // alt.:
> // #include<vector.h>
>
> void main()
> {
> }
With the gcc 2.8.0 that I have installed on my system, that program
compiled perfectly, except for a warning about the return type of
main(), which should be an integer. I don't have 2.7.2.1 around any
more to test your program on (or more accurately, I don't want to
uninstall 2.8.0, install 2.7.2.1, then reinstall 2.8.0; call me lazy),
but I can't imagine that such a major problem would have gone unnoticed.
Can you compile any other C++ programs that include C++ headers? Can
you compile normal C code? i.e., does the problem occur _only_ with
<vector.h>? Are you absolutely certain that you are not mixing versions
of gcc, for example, the 2.7.2.1 compiler (gpp2721b) with the 2.8.0
libraries (lgpp280b)?
You may want to try uninstalling the C++ components of DJGPP and
reinstalling them from scratch. If the compiler continues to work
improperly, try posting a system report as described in chapter 6.12 of
the FAQ, or using my DJVERIFY program
(http://www.cs.com/fighteer/files/vrfy04a.zip) to test your installation
and prepare a system report.
--
---------------------------------------------------------------------
| John M. Aldrich |"Men rarely (if ever) manage to dream |
| aka Fighteer I |up a god superior to themselves. Most |
| mailto:fighteer AT cs DOT com |gods have the manners and morals of a |
| http://www.cs.com/fighteer |spoiled child." - Lazarus Long |
---------------------------------------------------------------------
- Raw text -