Author Topic: <vector> won't work  (Read 1623 times)

0 Members and 1 Guest are viewing this topic.

Offline LiraNuna

  • Full Member
  • ***
  • Posts: 125
    • Development Blog
<vector> won't work
« on: May 04, 2005, 01:31:56 AM »
#include <vector>

typedef vector<unsigned> FORMAT_DATA;


the code above will not work. do vectors needs a Lib?

Offline DesktopMan

  • Moderator
  • Newbie
  • *****
  • Posts: 14
Re: <vector> won't work
« Reply #1 on: May 10, 2005, 04:33:24 AM »
We resolved this on irc, but I'll write it here aswell for others just in case. There seems to be a problem with the "using namespace" clause. So to get this to work do:

 #include <vector>

void main()
{
   std::vector<unsigned int> FORMAT_DATA;
}

or similar if you need other types.

Offline LiraNuna

  • Full Member
  • ***
  • Posts: 125
    • Development Blog
Re: <vector> won't work
« Reply #2 on: May 11, 2005, 04:55:45 PM »
We resolved this on irc

it's here before then