When compiling program with math.h in Gcc of Lnux, we should link with -lm, or there will be an error:undefined reference to 'sin'.
Subscribe to:
Post Comments (Atom)
When compiling program with math.h in Gcc of Lnux, we should link with -lm, or there will be an error:undefined reference to 'sin'.
Copyright © 2010 A personal web log, by karpar
Icons & Wordpress Theme by N.Design | Blogger Templates by Blog and Web
0 评论: (+add yours?)
Post a Comment