[Csnd] How to get started with the API

Hi everyone,

A couple of months ago I attempted this but needed to improve my knowledge of C++. Now I'm reading the instructions again on how to set up to use the Csound API. I have RoryWalsh_CsoundAPI.pdf.

"In order to use the API you will need to download the Csound source code which can be found here: http://csound.sourceforge.net/. To build the examples below with MinGW you will need to
first create an import library by running the following instructions at command prompt.
pexports -o csound32.dll.5.1 > csound32.def
Before proceeding to the next step you may need to edit the newly created csound32.def and remove the first line which seems to cause an error. Then created the new import library using the
following command:
dlltool --dllname=csound32.dll.5.1 --input-def=csound32.def –outputlib=libcsound32.a"

I've been using version 6.15.0 for a couple of years.

I found the pexports tool here MinGW - Minimalist GNU for Windows - Browse /MinGW/Extension/pexports at SourceForge.net dated 2015. Is that the latest one?

Jana Cole

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

Hi Jana,

I think those instructions look a bit old (for Csound 5). You should not need any of that on Windows anymore,
as Csound is built with Visual Studio tools now. All you need is to add Csound64.lib to your link libraries in the
project and also set the header paths to find the Csound headers. These are all provided in the Csound installation,
you will find them in the disk.

This repository might be useful for you

HTH

https://github.com/csound/csoundAPI_examples also has a Visual Studio project that you can use to get started. If you have Csound installed in the default location it should build out of the box for you. Let us know if you have any issues. You can post here, or file an issue at https://github.com/csound/csoundAPI_examples