> 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>
Ioannis Vranos - 27 Apr 2005 02:50 GMT
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[i]);
}
C:\c>temp
T
e
s
t
C:\c>
Tamas Demjen - 27 Apr 2005 18:39 GMT
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
>> temp.cpp(1) : fatal error C1083: Cannot open include file:
>> 'cli/vector': No such
[quoted text clipped - 27 lines]
>
> C:\c>
Jürgen Devlieghere - 02 May 2005 14:40 GMT
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
Carl Daniel [VC++ MVP] - 02 May 2005 15:45 GMT
> 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
Tamas Demjen - 03 May 2005 02:22 GMT
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
>>I have the same problem. No cli at all, actually nothing of STL.NET
>>in beta 2 of VS 2005.
[quoted text clipped - 6 lines]
>
> -cd