| I put in -mthreads, Steven is right that this should be for Windows only.
Original Message:
-----------------
From: stevenyi stevenyi@csounds.com
Date: Sun, 02 May 2004 21:52:51 -0700
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:4542] Re: Csound 5 commits
Hi John,
I did a fresh checkout and met the same problem as you did and this was
frustrating. It seems that if you change line 117:
commonEnvironment.Append(CCFLAGS = Split('-DCSOUND_WITH_API -g -O2
-mthreads'))
to:
commonEnvironment.Append(CCFLAGS = Split('-DCSOUND_WITH_API -g -O2'))
that taking out that mthreads will allow compilation. -mthreads seems
to be for mingw32 only. My guess is that when SCons went to do the
header check it probably writes a temp.c file with an #include of the
header and then runs gcc on it to see if it compiles correctly and that
since mthreads is only a mingw flag it gave an error. (I just wrote a
test.c file and tried to compile via "gcc -mthreads" and got an error so
I believe my assumption is correct.)
I have checked in changes that should now get you further along. (I just
met up with some linking errors; looks like libraries are included that
I don't need... will have to look again into this tomorrow.)
steven
On Sun, 2004-05-02 at 15:17, jpff@codemist.co.uk wrote:
> Well I failed to find a way of building the code. I tried moving the
> test for OS forward to before the
> sndfileFound = configure.CheckHeader("sndfile.h", language = "C")
> but it made no difference. If seems like I am going to have to learn
> Python just to go make!
> So frustrating
> ==John ffitch
>
>
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ . |