Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Csound API - a ready to use .lib, please

Date2008-02-03 14:27
FromMichael Gogins
SubjectRe: [Cs-dev] Csound API - a ready to use .lib, please
Using the CsoundAC DLL compiled with MinGW with Visual C++ is, I am afraid, simply not going to work. That is because all C compilers agree on how to spell C function names, but they do NOT agree on how to spell C++ function names (which, if you look at the symbols in the libraries, are "mangled" with little decorations that tell the linker what parameter types and return types the function has).

If you want to use CsoundAC, I suggest you use it with Python, or compile it with Visual C++. These really are pretty much the only practical alternatives.

If I could get my installation of SConstruct to run my Visual C++ compiler (free edition), I would try building it myself with Visual C++, but I'm stuck on that, and I have no desire to create and maintain a whole separate build system alongside scons.

Sorry about that,
Mike

-----Original Message-----
>From: Mark Johnson 
>Sent: Feb 2, 2008 8:55 PM
>To: csound-devel@lists.sourceforge.net
>Subject: Re: [Cs-dev] Csound API - a ready to use .lib, please
>
>
>Thanks Mike for that bit of information, that got me rolling with the C API. 
>Now I would like to use the CSoundAC.dll from Visual Studio C++.  I tried
>then same process to generate the libraires from the DLL, but the export
>symbols don't match up when the linker ran.  I s the something special that
>needs to be done to properly export C++ classes from the MinGW DLL for use
>with MSVC?  I thought that I might need to recompile with MSVC, but I am not
>having any luck with that.
>
>Thanks,
>Murk
>-- 
>View this message in context: http://www.nabble.com/Csound-API---a-ready-to-use-.lib%2C-please-tp14651849p15249732.html
>Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-03 14:53
From"Dale Stewart"
SubjectRe: [Cs-dev] Csound API - a ready to use .lib, please
FYI, the MySQL++ project uses "bakefile".  That may be a potential solution
to this dilemma in the long term.  I think a lot of people would like to
have a ready made build system for CSound in Visual C++.

Thanks,
Dale

-----Original Message-----
From: csound-devel-bounces@lists.sourceforge.net
[mailto:csound-devel-bounces@lists.sourceforge.net] On Behalf Of Michael
Gogins
Sent: Sunday, February 03, 2008 8:27 AM
To: Developer discussions
Subject: Re: [Cs-dev] Csound API - a ready to use .lib, please

Using the CsoundAC DLL compiled with MinGW with Visual C++ is, I am afraid,
simply not going to work. That is because all C compilers agree on how to
spell C function names, but they do NOT agree on how to spell C++ function
names (which, if you look at the symbols in the libraries, are "mangled"
with little decorations that tell the linker what parameter types and return
types the function has).

If you want to use CsoundAC, I suggest you use it with Python, or compile it
with Visual C++. These really are pretty much the only practical
alternatives.

If I could get my installation of SConstruct to run my Visual C++ compiler
(free edition), I would try building it myself with Visual C++, but I'm
stuck on that, and I have no desire to create and maintain a whole separate
build system alongside scons.

Sorry about that,
Mike

-----Original Message-----
>From: Mark Johnson 
>Sent: Feb 2, 2008 8:55 PM
>To: csound-devel@lists.sourceforge.net
>Subject: Re: [Cs-dev] Csound API - a ready to use .lib, please
>
>
>Thanks Mike for that bit of information, that got me rolling with the C
API. 
>Now I would like to use the CSoundAC.dll from Visual Studio C++.  I tried
>then same process to generate the libraires from the DLL, but the export
>symbols don't match up when the linker ran.  I s the something special that
>needs to be done to properly export C++ classes from the MinGW DLL for use
>with MSVC?  I thought that I might need to recompile with MSVC, but I am
not
>having any luck with that.
>
>Thanks,
>Murk
>-- 
>View this message in context:
http://www.nabble.com/Csound-API---a-ready-to-use-.lib%2C-please-tp14651849p
15249732.html
>Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-03 15:04
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] Csound API - a ready to use .lib, please
They sure would!

- even Barry Vercoe still works on his private (and non-Csound5 version)
of Csound on an older Windows98  laptop running an older version of  
Visual C++
and he doesn't work with Csound5, in part, because I think he knows  
and likes that system
and working environment.  (and he deeply knows every opcode and  
feature of his Csound!)

Still, if we were to deliver to him a new (free visual studio  
express) version of Csound5, we might
see more of his opcodes and work find their way out of his private  
Csound into the
public Csound5 and we might even hear more from him.

For example - this past summer he shared with me a really great  
harmonizer/pitchshifting
opcode - very much like the Digitech Vocalist Live 2 (and  
soundalikes) made popular by Cher,
Brittany, and tons of Rap artists now and much discussed and coveted  
on this list....
(his new opcode is probably the harmon 2 solution)

It would be great to have this and some of his other recent innovations

Having a Visual Studio IDE project (and and Xcode 3 project file) of  
Csound5 would be
HUGE!!!!

-dB

On Feb 3, 2008, at 9:53 AM, Dale Stewart wrote:

> FYI, the MySQL++ project uses "bakefile".  That may be a potential  
> solution
> to this dilemma in the long term.  I think a lot of people would  
> like to
> have a ready made build system for CSound in Visual C++.
>
> Thanks,
> Dale
>
> -----Original Message-----
> From: csound-devel-bounces@lists.sourceforge.net
> [mailto:csound-devel-bounces@lists.sourceforge.net] On Behalf Of  
> Michael
> Gogins
> Sent: Sunday, February 03, 2008 8:27 AM
> To: Developer discussions
> Subject: Re: [Cs-dev] Csound API - a ready to use .lib, please
>
> Using the CsoundAC DLL compiled with MinGW with Visual C++ is, I am  
> afraid,
> simply not going to work. That is because all C compilers agree on  
> how to
> spell C function names, but they do NOT agree on how to spell C++  
> function
> names (which, if you look at the symbols in the libraries, are  
> "mangled"
> with little decorations that tell the linker what parameter types  
> and return
> types the function has).
>
> If you want to use CsoundAC, I suggest you use it with Python, or  
> compile it
> with Visual C++. These really are pretty much the only practical
> alternatives.
>
> If I could get my installation of SConstruct to run my Visual C++  
> compiler
> (free edition), I would try building it myself with Visual C++, but  
> I'm
> stuck on that, and I have no desire to create and maintain a whole  
> separate
> build system alongside scons.
>
> Sorry about that,
> Mike
>
> -----Original Message-----
>> From: Mark Johnson 
>> Sent: Feb 2, 2008 8:55 PM
>> To: csound-devel@lists.sourceforge.net
>> Subject: Re: [Cs-dev] Csound API - a ready to use .lib, please
>>
>>
>> Thanks Mike for that bit of information, that got me rolling with  
>> the C
> API.
>> Now I would like to use the CSoundAC.dll from Visual Studio C++.   
>> I tried
>> then same process to generate the libraires from the DLL, but the  
>> export
>> symbols don't match up when the linker ran.  I s the something  
>> special that
>> needs to be done to properly export C++ classes from the MinGW DLL  
>> for use
>> with MSVC?  I thought that I might need to recompile with MSVC,  
>> but I am
> not
>> having any luck with that.
>>
>> Thanks,
>> Murk
>> -- 
>> View this message in context:
> http://www.nabble.com/Csound-API---a-ready-to-use-.lib%2C-please- 
> tp14651849p
> 15249732.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>
>>
>> --------------------------------------------------------------------- 
>> ----
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-03 19:57
FromMark Johnson
SubjectRe: [Cs-dev] Csound API - a ready to use .lib, please
Thanks Mike for that quick response.  Yeah that's pretty much what I figured. 
I spent like 10 hours just to get csound32.dll and csnd.dll to compile with
MSVC++ 9.0 (Mostly pathing, dependency and scons tweaks).  But I am hitting
a roadblock with compiling CSoundAC.dll (Some weird error that is occurring
in cstdarg on line 11).  Hopefully I can get this working someday...
-- 
View this message in context: http://www.nabble.com/Csound-API---a-ready-to-use-.lib%2C-please-tp14651849p15257487.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-03 21:31
FromMark Johnson
SubjectRe: [Cs-dev] Csound API - a ready to use .lib, please

Well, I finally got CSoundAC.dll compiled with with MSVC++ 9.0 (using
scons).  I had to modify several source files.  std::isnan is not part of
cmath in msvc, so I used a helper in boost::math::details::test_is_nan.  I
had to remove SILENCE_PUBLIC on a couple methods in Exceptions.hpp and
Midifile.hpp.  Now I just need to verify that it works...
-- 
View this message in context: http://www.nabble.com/Csound-API---a-ready-to-use-.lib%2C-please-tp14651849p15258598.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net