"STL .NET" in VS 2005 Beta 2

  • Thread starter Thread starter Ioannis Vranos
  • Start date Start date
Ioannis said:
temp.cpp(1) : fatal error C1083: Cannot open include file: 'cli/vector':
No such
file or directory


OK I found it. The headers are in the style:

#include <cliext/vector> and the namespace is cliext.


I think this cliext is very confusing. Couldn't it be stdcli as it was before?


Anyway, a code example that compiles with /clr:safe.


#include <cliext/vector>


int main()
{
using namespace System;
using namespace cliext;

vector<String ^> somevec;

somevec.push_back("Test");


Console::WriteLine(somevec[0]);
}


C:\c>temp
Test

C:\c>
 
Another interesting case:


#include <cliext/string>


int main()
{
using namespace System;
using namespace cliext;

string s= "Test";

for(string::size_type i=0; i<s.size(); ++i)
Console::WriteLine(s);
}



C:\c>temp
T
e
s
t

C:\c>
 
I don't get it. My Beta 2 has nothing like that. There's no cliext in my
entire hard disk, stdcli doesn't exist either, even a grep returns
nothing but 4 dll files containing the string "stdcli", and there's
nothing at all that contains the string "cliext". I doubt the public
Beta 2 has STL.NET. Where did you download it from?

Tom

Ioannis said:
Ioannis said:
temp.cpp(1) : fatal error C1083: Cannot open include file:
'cli/vector': No such
file or directory



OK I found it. The headers are in the style:

#include <cliext/vector> and the namespace is cliext.


I think this cliext is very confusing. Couldn't it be stdcli as it was
before?


Anyway, a code example that compiles with /clr:safe.


#include <cliext/vector>


int main()
{
using namespace System;
using namespace cliext;

vector<String ^> somevec;

somevec.push_back("Test");


Console::WriteLine(somevec[0]);
}


C:\c>temp
Test

C:\c>
 
I have the same problem. No cli at all, actually nothing of STL.NET in beta
2 of VS 2005.

I guess it's simply not in there?

Jürgen Devlieghere
 
Jürgen Devlieghere said:
I have the same problem. No cli at all, actually nothing of STL.NET
in beta 2 of VS 2005.

I guess it's simply not in there?

It simply is there.

Are you using VC++ Express or Visual Studio 2005?

-cd
 
Not the express. "Visual Studio 2005 Standard Beta 2 (English)" from the
MSDN site. File: en_vs_2005_std_dvd_beta2.iso, downloaded on 4/18/2005.

Tom
 
Back
Top