473,545 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
+ 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_ASS ERT(X, i);
};

Any ideas how to solve this?

TIA,
Pep.

Jul 23 '05 #1
2 1534
"Pep" <pe*@nowhere.co m> wrote in message
news:d3******** **@pop-news.nl.colt.ne t
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_ASS ERT(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.co m> wrote in message
news:d3******** **@pop-news.nl.colwith t
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_ASS ERT(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
3170
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 declared the function template like this, inside a class I'm building: template <typename T> T RandBits(); In my .cpp file I've implemented it like...
1
3127
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 v8.1.0.32", "s031027", "MI00060", and FixPak "4".Product is installed at "/opt/IBM/db2/V8.1"). It runs in an applicationcontainer (jdk1.4, linux). I...
2
2355
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
993
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 problems with doing this or is it a pretty stable way of transfering values between pages. thanks
4
3506
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 objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the...
0
3031
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 objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the...
3
2741
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 (we're sales offices, and I'm doing things such as associate directories, commission calculations, order tracking, etc.). 2003 seems to have a few...
10
2922
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
13431
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; }
0
7415
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7928
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7440
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
4963
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3470
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1902
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 we have to send another system
0
726
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.