Reply to topic  [ 3 posts ] 
Feature request: C++-friendly yapi.h 
Author Message
Yorick Master

Joined: Tue Mar 07, 2006 10:31 pm
Posts: 125
Location: Meudon, France
Post Feature request: C++-friendly yapi.h
Hi,

I have noticed that C++ doesn't like yapi.h: if I #include it in a file compiled with g++, compilation fails with
Code:
/usr/local/share/yorick-2.1.05/include/yapi.h:184: error: expected ‘,’ or ‘...’ before ‘typeid’


The problem is that the template for yget_any contains the word "typeid", which is reserved in C++. Changing "typeid" for anything else solves the problem. Would that be fine with you, or do you see a preferable solution?

Regards, Thibaut.


Mon Mar 02, 2009 2:41 am
Profile WWW
Yorick Master

Joined: Mon Nov 22, 2004 9:43 am
Posts: 354
Location: Livermore, CA, USA
Post 
You must have an old source. Line 184 of yapi.h reads:

PLUG_API void *ygeta_any(int iarg, long *ntot, long *dims, int *the_typeid);

This is

* $Id: yapi.h,v 1.6 2008/04/18 16:11:52 dhmunro Exp $


Tue Mar 03, 2009 7:33 pm
Profile
Yorick Master

Joined: Tue Mar 07, 2006 10:31 pm
Posts: 125
Location: Meudon, France
Post 
Indeed, this is fixed in CVS. Packages which need to build against 2.1.05 or earlier still need to work around this, but there is nothing we can do about it.

Regards, Thibaut.


Mon Apr 06, 2009 4:48 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.