Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6673907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:41:01+00:00 2026-05-26T03:41:01+00:00

I do not find a way to compile a simple file (.fs) to a

  • 0

I do not find a way to compile a simple file (.fs) to a .exe. I tried this example and it does not work:

  1. In the file dolphin.fs:

    let longBeaked = "Delphinus capensis"
    let shortBeaked = "Delphinus delphis"
    let dolphins = [ longBeaked; shortBeaked ]
    printfn "Known Dolphins: %A" dolphins
    
  2. You can now compile this code to an EXE as shown here:

    C:\fsharp> fsc dolphins.fs
    C:\fsharp> dir dolphins.exe
    

But when I do this an error occurs on the “:” from “C:\fsharp”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:41:01+00:00Added an answer on May 26, 2026 at 3:41 am

    This seems a bit wrong – aside from the fact that you’re not supposed to type the first bit (as explained by svick), you probably also need to specify the full path to the F# compiler. If you’re using F# that comes with Visual Studio 2010, then you need:

    "C:\Program Files (x86)\Microsoft F#\v4.0\Fsc.exe" dolphins.fs
    

    If you’re using standalone installation of F#, then you’ll need to locate the F# compiler somewhere else (probably in “Program Files (x86)\FSharp-2.0.0.0”, but I’m not exactly sure). Also, I’m not sure what is the dir command supposed to do. To execute the compiled application (once it is compiled), you can just type:

    doplhins.exe
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This one is probably a simple one, but I could not find an example
I've been searching for a way to do this, but could not find anything
I've been trying to find a way to do this but, have not found
I searched a lot but could not find a way to dump table relations
HEllo , i can not find any way to get horizontal or/and vertical resolution
I am not able to find a way to set TransactionIsolation in ejb. Can
I have not been able to find a way to cancel/terminate asynchronous read operation
we are looking for a way to find out (not modify, just find out)
I'm using rails 2.3.5 with i18n. I's there a way to find all not
I've searched and not been able to find the right way of doing what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.