LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2005, 04:11 PM   #1
harrylee2003
LQ Newbie
 
Registered: Nov 2004
Posts: 23

Rep: Reputation: 15
Help for C++ include


in my program..i want to use cos() sin() is't i need to #include <math>
but when i compile it....the system said math is unknow item....
what can i do? thank~~
 
Old 09-28-2005, 04:28 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Please try "#include <math.h>"

If that doesn't work, please cut/paste the exact error message and relevant lines of code.

TIA .. PSM
 
Old 09-28-2005, 04:54 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
No use "#include <cmath>"; to include C headers in C++ you use "cfoo" instead of "foo.h".
 
Old 09-28-2005, 05:01 PM   #4
harrylee2003
LQ Newbie
 
Registered: Nov 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by paulsm4
Please try "#include <math.h>"

If that doesn't work, please cut/paste the exact error message and relevant lines of code.

TIA .. PSM
Thank a lot^^" the problem solved ^^"
when don't i try it b4 ask haha
but thank anyways ^^"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
include/linux/types.h and include/linux/posix_types.h kpachopoulos Programming 2 11-26-2005 05:52 AM
RSYNC and include?? JediKnight2 Linux - Software 0 02-04-2005 11:52 AM
php include msound Programming 2 06-24-2004 04:21 PM
Path to include? Mazen Alzogbi Red Hat 1 11-15-2003 06:25 AM
include function phil81 Linux - Newbie 12 06-21-2003 04:40 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration