C++ question

View: New views
5 Messages — Rating Filter:   Alert me  

C++ question

by john ffitch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am failing to compile one version with a C++ error

Opcodes/stk/src/Messager.cpp: In function  void* socketHandler(void*) :
Opcodes/stk/src/Messager.cpp:334: error:  sort  is not a member of  std
scons: *** [Opcodes/stk/src/Messager.os] Error 1

g++ -v says "gcc version 4.3.2" if that matters

==John ffitch

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: C++ question

by Michael Gogins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is <algorithm> included?

GCC 3.4.2 certainly does have std::sort.

However, I had to patch a number of STK files to get things to
compile. Mostly it was adding header files that were not being
scanned. I presume this is due to differences in implementation of the
C++ standard library between GCC versions.

Hope this helps,
Mike

On 9/20/09, jpff <jpff@...> wrote:

> I am failing to compile one version with a C++ error
>
> Opcodes/stk/src/Messager.cpp: In function  void* socketHandler(void*) :
> Opcodes/stk/src/Messager.cpp:334: error:  sort  is not a member of  std
> scons: *** [Opcodes/stk/src/Messager.os] Error 1
>
> g++ -v says "gcc version 4.3.2" if that matters
>
> ==John ffitch
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: C++ question

by jpff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Is <algorithm> included?
It was not and adding it compiles that file -- now stuck on

Opcodes/stk/stkOpcodes.cpp:81: error: ‘stk’ is not a namespace-name
Opcodes/stk/stkOpcodes.cpp:81: error: expected namespace-name before ‘;’
token

This used to compile as far as i can remember -- normally I do not look at
this code




------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: C++ question

by Michael Gogins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

STK changed to a namespace scheme recently, it sounds like you do not
have the latest STK code. The STKOpcode.cpp file has been updated to
compile with the most recent STK (as of a month or so ago when I last
built everything).

Hope this helps,
Mike

On 9/20/09, jpff@... <jpff@...> wrote:

>> Is <algorithm> included?
> It was not and adding it compiles that file -- now stuck on
>
> Opcodes/stk/stkOpcodes.cpp:81: error: ‘stk’ is not a namespace-name
> Opcodes/stk/stkOpcodes.cpp:81: error: expected namespace-name before ‘;’
> token
>
> This used to compile as far as i can remember -- normally I do not look at
> this code
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: C++ question

by jpff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are thanks;  that sounds familiar and you told me that before!

Will get new sources

==John ff


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel