Git Product home page Git Product logo

Comments (9)

RoryBarnes avatar RoryBarnes commented on September 28, 2024

Hi Priyash, Sorry to hear this code gave you some trouble. Can you say a little bit more about how you compiled it? Which OS? I just recloned and ran:

gcc -o hite hite.c -lm

and it worked fine for me.

from hite.

priyashmistry avatar priyashmistry commented on September 28, 2024

I'm using CodeBlocks (https://www.codeblocks.org/) on windows 10 for compilation.

from hite.

SarveshVGharat avatar SarveshVGharat commented on September 28, 2024

Hello Prof. the command "gcc -o hite hite.c -lm" works fine, but hite earth.in gives an error stating "Command 'hite' not found", seems like hite is been treated as linux command

PS: I am using Linux Mint

from hite.

RoryBarnes avatar RoryBarnes commented on September 28, 2024

Did you try

./hite earth.in

? I haven't used Mint before, but maybe it requires being very clear about the path?

from hite.

nurwannn avatar nurwannn commented on September 28, 2024

Hello sir, when i run 'hite earth.in" i got some problem like "ERROR: Expected option NumPlanets, found option α↕@.
Line: 66", can you help me with this problem?

from hite.

RoryBarnes avatar RoryBarnes commented on September 28, 2024

It's not obvious to me what the issue is from your comment. The first option in earth.in is NumPlanets, so I don't know why it would be reporting an error on line 66. Did you modify earth.in in some way? Does running 'hite kepler452b.in' produce a similar error?

from hite.

nurwannn avatar nurwannn commented on September 28, 2024

Yes, running hite kepler452b.in
I following this flow

  1. Download source code in githubg
  2. Install GCC on my windows
  3. Open cmd
  4. Hit "GCC hite.c"
  5. And then hit "a earth.in", or "hite earth.in"
  6. And three is an error like i send before

Please tell me if i forget some step to use your code, i hope you can help me for this problem, thankyou before

Best regard

from hite.

nurwannn avatar nurwannn commented on September 28, 2024

For note, i use originaly file from your file .tar

from hite.

RoryBarnes avatar RoryBarnes commented on September 28, 2024

It looks like you're running from a Windows prompt, which is something I haven't tried before. For scientific computing I strongly recommend using the freely available Windows Subsystem for Linux. From there, you may need to install gcc. Once you've confirmed gcc is installed, the commands should be

tar xvfz HITE.tar.gz
gcc -o hite hite.c -lm
./hite earth.in

(I think.) Let me know if that works for you and if so, I will update the README. Thanks for your interest in this code!

from hite.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.