Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-2007, 03:59 PM
bobwrit bobwrit is offline
Newbie
 
Join Date: Apr 2007
Posts: 28
Rep Power: 6
bobwrit is on a distinguished road
Angry can someone help me with my c librarys?

when I try to use the math.h library my compiler (mingw studio) ends up with 49 errors from the file. I was wondering wether theres a site to download the origanal library's for linux.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-12-2007, 11:45 PM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,445
Last Blog:
CherryPy(thon)
Rep Power: 27
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

What are the errors?
Maybe you should link with the math-library. To link with the math-library, simply add -lm.
Code:
// Example:
gcc -Wall -lm myApp.cpp -o myApp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-13-2007, 12:26 PM
bobwrit bobwrit is offline
Newbie
 
Join Date: Apr 2007
Posts: 28
Rep Power: 6
bobwrit is on a distinguished road
Default

here's the errors
/usr/include/math.h:88: error: parse error before '*' token
/usr/include/math.h:90: error: parse error before '}' token
/usr/include/math.h:95: error: parse error before '*' token
/usr/include/math.h:96: error: conflicting types for 'arg1'
/usr/include/math.h:89: error: previous declaration of 'arg1' was here
/usr/include/math.h:96: error: conflicting types for 'arg2'
/usr/include/math.h:89: error: previous declaration of 'arg2' was here
/usr/include/math.h:96: error: conflicting types for 'retval'
/usr/include/math.h:89: error: previous declaration of 'retval' was here
/usr/include/math.h:97: error: parse error before '}' token
/usr/include/math.h:102: error: parse error before "_huge_dble"
/usr/include/math.h:104: error: parse error before "_huge_ldble"
/usr/include/math.h:109: error: parse error before "_EXPFUNC"
/usr/include/math.h:110: error: parse error before "_EXPFUNC"
/usr/include/math.h:111: error: parse error before "atan"
/usr/include/math.h:112: error: parse error before "_EXPFUNC"
/usr/include/math.h:113: error: parse error before "_EXPFUNC"
/usr/include/math.h:114: error: parse error before "_EXPFUNC"
/usr/include/math.h:115: error: parse error before "_EXPFUNC"
/usr/include/math.h:116: error: parse error before "_EXPFUNC"
/usr/include/math.h:117: error: parse error before "fabs"
/usr/include/math.h:118: error: parse error before "__fabs__"
/usr/include/math.h:119: error: parse error before "_EXPFUNC"
/usr/include/math.h:120: error: parse error before "_EXPFUNC"
/usr/include/math.h:121: error: parse error before "_EXPFUNC"
/usr/include/math.h:121: error: parse error before '*' token
/usr/include/math.h:122: error: parse error before "_EXPFUNC"
/usr/include/math.h:123: error: parse error before "_EXPFUNC"
/usr/include/math.h:124: error: parse error before "_EXPFUNC"
/usr/include/math.h:125: error: parse error before "_EXPFUNC"
/usr/include/math.h:125: error: parse error before '*' token
/usr/include/math.h:126: error: parse error before "_EXPFUNC"
/usr/include/math.h:127: error: parse error before "_EXPFUNC"
/usr/include/math.h:128: error: parse error before "_EXPFUNC"
/usr/include/math.h:129: error: parse error before "_EXPFUNC"
/usr/include/math.h:130: error: parse error before "_EXPFUNC"
/usr/include/math.h:131: error: parse error before "_EXPFUNC"
/usr/include/math.h:133: error: parse error before "_EXPFUNC"
/usr/include/math.h:134: error: parse error before "_EXPFUNC"
/usr/include/math.h:135: error: parse error before "_EXPFUNC"
/usr/include/math.h:136: error: parse error before "atanl"
/usr/include/math.h:137: error: parse error before "_EXPFUNC"
/usr/include/math.h:138: error: parse error before "_EXPFUNC"
/usr/include/math.h:139: error: parse error before "_EXPFUNC"
/usr/include/math.h:140: error: parse error before "_EXPFUNC"
/usr/include/math.h:141: error: parse error before "fabsl"
/usr/include/math.h:142: error: parse error before "_EXPFUNC"
/usr/include/math.h:143: error: parse error before "_EXPFUNC"
/usr/include/math.h:144: error: parse error before "_EXPFUNC"
/usr/include/math.h:144: error: parse error before '*' token
/usr/include/math.h:145: error: parse error before "_EXPFUNC"
/usr/include/math.h:146: error: parse error before "_EXPFUNC"
/usr/include/math.h:147: error: parse error before "_EXPFUNC"
/usr/include/math.h:148: error: parse error before "_EXPFUNC"
/usr/include/math.h:148: error: parse error before '*' token
/usr/include/math.h:149: error: parse error before "_EXPFUNC"
/usr/include/math.h:150: error: parse error before "_EXPFUNC"
/usr/include/math.h:151: error: parse error before "_EXPFUNC"
/usr/include/math.h:152: error: parse error before "_EXPFUNC"
/usr/include/math.h:153: error: parse error before "_EXPFUNC"
/usr/include/math.h:154: error: parse error before "_EXPFUNC"


then I get errors because the hypot function and sqrt as well as pow are in the library.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-13-2007, 03:46 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 26
Posts: 5,942
Last Blog:
Performance or Maintai...
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Can you post your code?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-27-2007, 06:19 PM
jvclark's Avatar   
jvclark jvclark is offline
Newbie
 
Join Date: Apr 2007
Location: USA
Age: 18
Posts: 5
Rep Power: 0
jvclark is on a distinguished road
Default

There could be syntax in the code. Having others look at the code would help determine if that is true.
__________________
If you drive fast enough towards a red light it will appear green.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 02:16 AM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
LogicKills ........ 20.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads