470,849 Members | 1,135 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Bug with vectors

Hello,

I'm working in VS 6.0. During the debuging output console gave me line
like this (there are 17 of them, all of them belong to folder include
in VC98):

:\program files\microsoft visual studio\vc98\include\new(36) : error
C2059: syntax error : 'constant'
c:\program files\microsoft visual studio\vc98\include\new(36) : error
C2091: function returns function
c:\program files\microsoft visual studio\vc98\include\new(36) : error
C2809: 'operator new' has no formal parameters
c:\program files\microsoft visual studio\vc98\include\new(37) : error
C2059: syntax error : 'constant'
c:\program files\microsoft visual studio\vc98\include\new(38) : error
C2091: function returns function
c:\program files\microsoft visual studio\vc98\include\new(38) : error
C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const
struct std::nothrow_t &)' : overloaded function differs only by return
type from 'void *(__cdecl *__cdecl op
erator new(void))(unsigned int)'.....................

I noticed one thing. When I remove this two lines (situatuated on the
beggining of header class):

#include <vector>
using std::vector;

it's all OK. I can't understand where the problem is. I left project
settings default.

Mar 1 '06 #1
1 1545
Sorry people, I realized where bug was...Before #include <vector> I
included some headers from library that I use in project. Very smart :)

Mar 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Michael Aramini | last post: by
5 posts views Thread by Computer Whizz | last post: by
3 posts views Thread by Amit | last post: by
4 posts views Thread by Dr. J.K. Becker | last post: by
5 posts views Thread by madhu | last post: by
1 post views Thread by Rob | last post: by
2 posts views Thread by joeme | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.