Recent

Author Topic: Why are there so few open source Pascal/FP projects?  (Read 5087 times)

anyone

  • Guest
Re: Why are there so few open source Pascal/FP projects?
« Reply #15 on: October 03, 2020, 11:20:55 am »
You are right, FPC programs do not require an external run time library to operate.  Just a note, it is also possible, depending on how you code, to create a VC++ application that does not use/require the VC++ run time libraries but, it's not straightforward.

I really appreciate your acknowledgement and additional notes on this.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: Why are there so few open source Pascal/FP projects?
« Reply #16 on: October 03, 2020, 02:09:00 pm »
The reason I choose FPC instead of C# .NET and VC++ when creating console apps simply because FPC creates standalone Win32 executable (am I right)?
C# .NET console app requires .NET Framework. VC++ requires VC++ runtime.
Please correct me if I am wrong.
You are right, FPC programs do not require an external run time library to operate.  Just a note, it is also possible, depending on how you code, to create a VC++ application that does not use/require the VC++ run time libraries but, it's not straightforward.

At least when using Visual Studio it's simply done by switching the option Runtime Library in the page Code Generation from Multithreaded-DLL to Multithreaded. The command line switch is /MT compared to /MD.
The resulting binary will only depend on core Windows libraries like Kernel32.dll or User32.dll.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11457
  • FPC developer.
Re: Why are there so few open source Pascal/FP projects?
« Reply #17 on: October 03, 2020, 02:44:47 pm »
Hmm, does that also work for DLLs ? I use wrapper DLLs and that now requires a mess of runtimes to manage would be nice if that could be eliminated.

440bx

  • Hero Member
  • *****
  • Posts: 4064
Re: Why are there so few open source Pascal/FP projects?
« Reply #18 on: October 03, 2020, 08:39:28 pm »
At least when using Visual Studio it's simply done by switching the option Runtime Library in the page Code Generation from Multithreaded-DLL to Multithreaded. The command line switch is /MT compared to /MD.
The resulting binary will only depend on core Windows libraries like Kernel32.dll or User32.dll.
Thank you for that information.  Visual Studio 2017 is what I use.  I guess I should try again with your suggestion which I believe is one of the many things I tried but, I could be wrong about that.  Though, at this point, I avoid VC++ and VS (except for debugging).  MS' unsolicited VS updates have resulted in some of my programs no longer compiling, it gets tiresome to figure out what happened and, correct the "problem" only to have it happen again at a later time after another unsolicited update.

All that said, thank you again.



(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: Why are there so few open source Pascal/FP projects?
« Reply #19 on: October 04, 2020, 01:35:42 pm »
Hmm, does that also work for DLLs ? I use wrapper DLLs and that now requires a mess of runtimes to manage would be nice if that could be eliminated.

Yes, it's independant of whether you're compiling a DLL or an executable.

At least when using Visual Studio it's simply done by switching the option Runtime Library in the page Code Generation from Multithreaded-DLL to Multithreaded. The command line switch is /MT compared to /MD.
The resulting binary will only depend on core Windows libraries like Kernel32.dll or User32.dll.
Thank you for that information.  Visual Studio 2017 is what I use.  I guess I should try again with your suggestion which I believe is one of the many things I tried but, I could be wrong about that.

At work - where we use MSVC - we've used that already back with VS 2008.

 

TinyPortal © 2005-2018