tag:blogger.com,1999:blog-2807403883562053852.post6177103522187980905..comments2024-03-27T08:40:31.785-06:00Comments on Clayton Cramer.: Have I Really Forgotten C?Clayton Cramerhttp://www.blogger.com/profile/03258083387204776812noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-2807403883562053852.post-68789309373464209252018-07-09T17:06:40.220-06:002018-07-09T17:06:40.220-06:00These expressions aren't allowed in The New Ma...These expressions aren't allowed in The New Math. Haven't you heard?<br /><br />There's a new law coming soon, which will set Pi=3.0 That'll make everything much simpler, won't it!Eskymanhttps://www.blogger.com/profile/15947922645001422523noreply@blogger.comtag:blogger.com,1999:blog-2807403883562053852.post-35769012817628255242018-07-09T16:10:43.490-06:002018-07-09T16:10:43.490-06:00Do you have a local math.h file?Do you have a local math.h file?jdegehttps://www.blogger.com/profile/01495457567906071678noreply@blogger.comtag:blogger.com,1999:blog-2807403883562053852.post-51908602715058808942018-07-09T15:53:16.625-06:002018-07-09T15:53:16.625-06:00In the text shown, the parenthesis are not balance...In the text shown, the parenthesis are not balanced where y is evaluated. I see an extra ) before the semicolon at the end of the expression.<br />smnhttps://www.blogger.com/profile/05473190824675579810noreply@blogger.comtag:blogger.com,1999:blog-2807403883562053852.post-82100537191994763322018-07-09T12:22:42.088-06:002018-07-09T12:22:42.088-06:00Ooh, ooh, I know! (Maybe.)
Add the '-lm'...Ooh, ooh, I know! (Maybe.) <br /><br />Add the '-lm' flag to your cc step to link in the math library.<br /><br />Also "#include "Paul Sandhttps://www.blogger.com/profile/06175388613093409161noreply@blogger.comtag:blogger.com,1999:blog-2807403883562053852.post-49371879023614508972018-07-09T12:07:57.566-06:002018-07-09T12:07:57.566-06:00Also, using quotes instead of brackets means it lo...Also, using quotes instead of brackets means it looks in local directory for file instead of the compiler include search path.Cincinnatushttps://www.blogger.com/profile/10424218376882403880noreply@blogger.comtag:blogger.com,1999:blog-2807403883562053852.post-15608559665651249092018-07-09T12:06:35.176-06:002018-07-09T12:06:35.176-06:00Was the space in the include file name "math ...Was the space in the include file name "math .h" in your original source? If so, that's your error.Cincinnatushttps://www.blogger.com/profile/10424218376882403880noreply@blogger.com