Find the answer to your Linux question:
Results 1 to 5 of 5
hi all.. I was working on college assignment,trying to implement HMAC digest using SHA1. i used C ,gcc and ubuntu.The program worked fine in ubuntu,but when i tried to compile ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Angry gcc

    hi all..
    I was working on college assignment,trying to implement HMAC digest using SHA1.
    i used C ,gcc and ubuntu.The program worked fine in ubuntu,but when i tried to compile and run it in fedora,it gives me an entire different output!!!!
    Is gcc distro dependent?
    please help me out guys...
    ;(

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    when i tried to compile and run it in fedora,it gives me an entire different output!!!!
    What output? Is it compilation errors or different output of compiled package?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    there are no compiler errors...i get different outputs..
    ;(

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    There could be difference in gcc versions.
    Execute gcc -v in both distro to check version.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by devils casper View Post
    There could be difference in gcc versions.
    Execute gcc -v in both distro to check version.
    Also, please show your kernel version for each (uname -r) and the source that shows the different output for each system, and what the output is.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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