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.
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.
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
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.
Can you post your code?
There could be syntax in the code. Having others look at the code would help determine if that is true.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum