Csound Csound-dev Csound-tekno Search About

[Cs-dev] interfaces lib building in windows with MSVC

Date2005-10-28 12:01
FromVictor Lazzarini
Subject[Cs-dev] interfaces lib building in windows with MSVC
I am now just trying to make the interfaces lib build on
Windows with MSVC. I have swig and it is creating the
pyhton_interface_wrap.c

My problem is that MSVC does not have a long long type.
I don't know much about SWIG *.i files. Is it possible for
someone (Michael?)  to add some lines to the *.i files, so
that you have something like #ifdef MSVC don't use
long long

This is the compilation error:
interfaces\python_interface_wrap.c(1871) : error C2632: 'long' followed by 
'long' is illegal

Thanks

Victor

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-28 12:50
FromIstvan Varga
SubjectRe: [Cs-dev] interfaces lib building in windows with MSVC
Victor Lazzarini wrote:

> I am now just trying to make the interfaces lib build on
> Windows with MSVC. I have swig and it is creating the
> pyhton_interface_wrap.c
> 
> My problem is that MSVC does not have a long long type.
> I don't know much about SWIG *.i files. Is it possible for
> someone (Michael?)  to add some lines to the *.i files, so
> that you have something like #ifdef MSVC don't use
> long long

The line with 'long long' can be #ifdef'd out for MSVC; some
functions may not work correctly then, but none of those are
really important (I think the only ones affected are related
to random numbers, and you already have that in Python natively).


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-28 13:05
FromVictor Lazzarini
SubjectRe: [Cs-dev] interfaces lib building in windows with MSVC
Yes, but that needs to be done in the interface file, so that
it generates a source with ifdefs, otherwise we will have to be
editing sources everytime a new build is made. I don't know
much about interface files, so if someone who knows about it
can do, I'd be very thankful.

Victor

At 12:50 28/10/2005, you wrote:
>Victor Lazzarini wrote:
>
>>I am now just trying to make the interfaces lib build on
>>Windows with MSVC. I have swig and it is creating the
>>pyhton_interface_wrap.c
>>My problem is that MSVC does not have a long long type.
>>I don't know much about SWIG *.i files. Is it possible for
>>someone (Michael?)  to add some lines to the *.i files, so
>>that you have something like #ifdef MSVC don't use
>>long long
>
>The line with 'long long' can be #ifdef'd out for MSVC; some
>functions may not work correctly then, but none of those are
>really important (I think the only ones affected are related
>to random numbers, and you already have that in Python natively).
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.
>Get Certified Today * Register for a JBoss Training Course
>Free Certification Exam for All Training Attendees Through End of 2005
>Visit http://www.jboss.com/services/certification for more information
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-28 13:24
FromIstvan Varga
SubjectRe: [Cs-dev] interfaces lib building in windows with MSVC
Victor Lazzarini wrote:

> Yes, but that needs to be done in the interface file, so that
> it generates a source with ifdefs, otherwise we will have to be
> editing sources everytime a new build is made. I don't know
> much about interface files, so if someone who knows about it
> can do, I'd be very thankful.

Actually, you can use #ifdef in the .i file. There is a minor error
in SConstruct that results in the defines not being passed to SWIG,
but I fixed that.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-28 14:26
FromVictor Lazzarini
SubjectRe: [Cs-dev] interfaces lib building in windows with MSVC
How do you actually define long long as __int64 (the MSVC type)?
I never did this in fact; but of course
#define long long __int64
won't work
and
typedef __int64 long long;
neither.

Victor
At 13:24 28/10/2005, you wrote:
>Victor Lazzarini wrote:
>
>>Yes, but that needs to be done in the interface file, so that
>>it generates a source with ifdefs, otherwise we will have to be
>>editing sources everytime a new build is made. I don't know
>>much about interface files, so if someone who knows about it
>>can do, I'd be very thankful.
>
>Actually, you can use #ifdef in the .i file. There is a minor error
>in SConstruct that results in the defines not being passed to SWIG,
>but I fixed that.
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.
>Get Certified Today * Register for a JBoss Training Course
>Free Certification Exam for All Training Attendees Through End of 2005
>Visit http://www.jboss.com/services/certification for more information
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net