Glenn Jupp Posted March 11, 2009 Share Posted March 11, 2009 As I mentioned in another thread, I'm trying to modify MAKEWAV to produce a much longer WAV file than is usual for it (about ten times longer in running time). I had hoped it would be an easy tweak. Lines 243 and 255 in MAKEWAV.C seem to be the key. I just need to raise the "80" in if (parms->zeroBitLength > 80 || parms->zeroBitLength <1) to 800 (I think, and the same change again a few lines later). But I can't get it to compile. Things keep choking on the undefined symbols "myGlob" and "delq" so I guess I'm not using the same compiler and setup as Bob Colbert did. Any suggestions or guidance? Please? Quote Link to comment Share on other sites More sharing options...
cd-w Posted March 11, 2009 Share Posted March 11, 2009 As I mentioned in another thread, I'm trying to modify MAKEWAV to produce a much longer WAV file than is usual for it (about ten times longer in running time). I had hoped it would be an easy tweak. Lines 243 and 255 in MAKEWAV.C seem to be the key. I just need to raise the "80" in if (parms->zeroBitLength > 80 || parms->zeroBitLength <1) to 800 (I think, and the same change again a few lines later). But I can't get it to compile. Things keep choking on the undefined symbols "myGlob" and "delq" so I guess I'm not using the same compiler and setup as Bob Colbert did. Any suggestions or guidance? Please? I'm assuming that you are trying to compile the version 4.1 source on Bob Colberts page? What compiler are you using? I just compiled it using gcc 4.3.3 (linux) and it works fine for me. It sounds like you are only compiling makewav.c. You need to compile all three files in the archive together - myGlob is defined in find.c and delq is defined in queue.c. Have a look at the supplied Makefile to see how this is done. Chris Quote Link to comment Share on other sites More sharing options...
Glenn Jupp Posted March 11, 2009 Author Share Posted March 11, 2009 I'm assuming that you are trying to compile the version 4.1 source on Bob Colberts page?What compiler are you using? I just compiled it using gcc 4.3.3 (linux) and it works fine for me. It sounds like you are only compiling makewav.c. You need to compile all three files in the archive together - myGlob is defined in find.c and delq is defined in queue.c. Have a look at the supplied Makefile to see how this is done. In reverse order... Thanks for helping out a c-noob. That did the trick. I thought all that other stuff was already taken care of with the "includes." Yah, just MAKEWAV.C. I tried TCC 0.9.24 (win9X) to begin with because small is beautiful, especially when you're still on dialup Yah, the 4.1 source, sorry I didn't specify. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.