Csound Csound-dev Csound-tekno Search About

compiling csoundapi examples directly

Date2016-05-22 17:00
FromForrest Curo
Subjectcompiling csoundapi examples directly
The cmake & make approach works on the 'c' examples...

but if I want to modify and use those examples, compiling them directly with gcc under ubuntu linux, I first need to add /usr/local/include/csound to the include path -- and now

I'm still finding gcc failing to recognize the functions in csound.h

How come, & how should I get this to work?
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-22 17:04
FromVictor Lazzarini
SubjectRe: compiling csoundapi examples directly
-I /path/to/csound.h

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 22 May 2016, at 17:00, Forrest Curo <treegestalt@GMAIL.COM> wrote:

The cmake & make approach works on the 'c' examples...

but if I want to modify and use those examples, compiling them directly with gcc under ubuntu linux, I first need to add /usr/local/include/csound to the include path -- and now

I'm still finding gcc failing to recognize the functions in csound.h

How come, & how should I get this to work?
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-22 17:14
FromVictor Lazzarini
SubjectRe: compiling csoundapi examples directly
But use just the path not the actual csound.h

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 22 May 2016, at 17:04, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

-I /path/to/csound.h

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 22 May 2016, at 17:00, Forrest Curo <treegestalt@GMAIL.COM> wrote:

The cmake & make approach works on the 'c' examples...

but if I want to modify and use those examples, compiling them directly with gcc under ubuntu linux, I first need to add /usr/local/include/csound to the include path -- and now

I'm still finding gcc failing to recognize the functions in csound.h

How come, & how should I get this to work?
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-22 17:34
FromRory Walsh
SubjectRe: compiling csoundapi examples directly
Something like:

g++ youtfile.c -o test -I ../../csound/include/ -lcsound64 -lsndfile



On 22 May 2016 at 17:14, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
But use just the path not the actual csound.h

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 22 May 2016, at 17:04, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

-I /path/to/csound.h

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 22 May 2016, at 17:00, Forrest Curo <treegestalt@GMAIL.COM> wrote:

The cmake & make approach works on the 'c' examples...

but if I want to modify and use those examples, compiling them directly with gcc under ubuntu linux, I first need to add /usr/local/include/csound to the include path -- and now

I'm still finding gcc failing to recognize the functions in csound.h

How come, & how should I get this to work?
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

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

Date2016-05-22 21:15
FromForrest Curo
SubjectRe: compiling csoundapi examples directly
"gcc example6.c -o example6 -I /usr/local/include/csound -lcsound64 -lsndfile"

Yes. It's happy, thanks!

On Sun, May 22, 2016 at 9:34 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
Something like:

g++ youtfile.c -o test -I ../../csound/include/ -lcsound64 -lsndfile



On 22 May 2016 at 17:14, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
But use just the path not the actual csound.h

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 22 May 2016, at 17:04, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

-I /path/to/csound.h

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 22 May 2016, at 17:00, Forrest Curo <treegestalt@GMAIL.COM> wrote:

The cmake & make approach works on the 'c' examples...

but if I want to modify and use those examples, compiling them directly with gcc under ubuntu linux, I first need to add /usr/local/include/csound to the include path -- and now

I'm still finding gcc failing to recognize the functions in csound.h

How come, & how should I get this to work?
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

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

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