hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

--standalone and --static-link

Last post 02-03-2010, 6:07 by Julien. 1 replies.
Sort Posts: Previous Next
  •  01-21-2010, 7:48 12909

    --standalone and --static-link

    I was putting together a one-off app that I wanted to distribute as a single exe. So, I was messing with --standalone and --static-link flags.

    (all projects are --static-link below)

    If I had:
    F# -> C# -> F#
    the compiler complained that the last f# project was not referenced directly (I forget the actual phrasing), and that no F# libraries would be linked.

    If I had:
    F# -> F#
    F# -> C#
    the compiler complained about 2 definitions of some F# stuff. (Both F# projects included the --standalone flag.)

    Is the standalone flag going to be supported in the future? Will there be support for when 2 F# libraries specify the standalone flag with static linking?
  •  02-03-2010, 6:07 13010 in reply to 12909

    Re: --standalone and --static-link

    I think that using the --standalone flags links the FSharp.Core libraries into your dll. Hence using --standalone on multiple F# projects result in errors.

    Have you tried using static linking for the referenced dlls and standalone only for the "last" F# dll of your project ?

    I hope this might help.


    http://lepensemoi.free.fr
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems