473,466 Members | 1,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problems using Loki with MSVC

Pep
The following code from the Loki TypeManip.h header file is causing problems
with MSVC version 6.0

template <unsigned i>
struct TypeTag
{
struct Inner {char c[i];};
typedef Inner X;
STATIC_SIZE_ASSERT(X, i);
};

Any ideas how to solve this?

TIA,
Pep.

Jul 23 '05 #1
2 1523
"Pep" <pe*@nowhere.com> wrote in message
news:d3**********@pop-news.nl.colt.net
The following code from the Loki TypeManip.h header file is causing
problems with MSVC version 6.0

template <unsigned i>
struct TypeTag
{
struct Inner {char c[i];};
typedef Inner X;
STATIC_SIZE_ASSERT(X, i);
};

Any ideas how to solve this?

TIA,
Pep.

VC++ 6.0 has poor support for templates. The original Loki won't compile on
it. There is a port to VC++ 6.0 but it is not fully compatible with the
original Loki

http://fara.cs.uni-potsdam.de/~kaufmann/?page=lokiport

The only really satisfactory solution is to upgrade VC++ (current version is
7.1 and 8.0 is in Beta) or switch to another compiler.
--
John Carson

Jul 23 '05 #2
Pep
John Carson wrote:
"Pep" <pe*@nowhere.com> wrote in message
news:d3**********@pop-news.nl.colwitht
The following code from the Loki TypeManip.h header file is causing
problems with MSVC version 6.0

template <unsigned i>
struct TypeTag
{
struct Inner {char c[i];};
typedef Inner X;
STATIC_SIZE_ASSERT(X, i);
};

Any ideas how to solve this?

TIA,
Pep.

VC++ 6.0 has poor support for templates. The original Loki won't compile
on it. There is a port to VC++ 6.0 but it is not fully compatible with the
original Loki

http://fara.cs.uni-potsdam.de/~kaufmann/?page=lokiport

The only really satisfactory solution is to upgrade VC++ (current version
is 7.1 and 8.0 is in Beta) or switch to another compiler.


I seem to have version 5d of this already installed. The crazy thing is
that a colleague of mine iwth a identical setup can build the system!

Thanks,
Pep.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Fred H | last post by:
I'm currently trying to write a function template that can fill a variable of arbitrary type with 'random' stuff, but I can't seem to get my function template working. In my .h file I've...
1
by: chaos | last post by:
Hello, i have problems using sqlj in the following environment. I use type 4 driver com.ibm.db2.jcc.DB2Driver and connect succesful to 8.1. db2-Database(DRDA)(Informational tokens are "DB2...
2
by: Paul Duncan | last post by:
diggityduncs (Programmer) Nov 13, 2003 Hello, I'm tring to use a win32/api dll in c# The vendor I received the dll from doesn't know anything about .net I received two files ACGAPI.DLL +
3
by: jw56578 | last post by:
I am using context object to pass all information needed when navigating between pages. I add the item to the collection, server.transfer, and retrieve the value in the next page. Are there any...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: google | last post by:
I'm developing an application for use within my company in Access 2003. I'm new to '03, the application I did for my former employer was in '97. The two applications have similar functionality...
10
by: Ray | last post by:
I am reading Andrei Alexandrescu's book. The ideas presented there sound really good, but I wonder--is there really a lot of people using it? Or it's simply too esoteric for mortals? Cheers Ray
3
by: Brett R. Wesoloski | last post by:
I am having problems using HttpContext.Current.Request.Url.Host. I have some code that does this... if (HttpContext.Current != null) { subdomain = HttpContext.Current.Request.Url.Host; }
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.