+ Reply to Thread
Results 1 to 5 of 5

Thread: can someone help me with my c librarys?

  1. #1
    Newbie bobwrit is on a distinguished road
    Join Date
    Apr 2007
    Posts
    28

    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.

  2. #2
    Retired v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light
    Join Date
    Apr 2007
    Posts
    2,978
    Blog Entries
    3
    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

  3. #3
    Newbie bobwrit is on a distinguished road
    Join Date
    Apr 2007
    Posts
    28
    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.

  4. #4
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97
    Can you post your code?

  5. #5
    Newbie jvclark is an unknown quantity at this point jvclark's Avatar
    Join Date
    Apr 2007
    Location
    USA
    Age
    19
    Posts
    5
    There could be syntax in the code. Having others look at the code would help determine if that is true.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts