All Libraries DLLs to run examples

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
BasicJedi
Posts: 13
Joined: Mar 21, 2021 13:38

All Libraries DLLs to run examples

Post by BasicJedi »

Hello I'm new to FreeBasic but I was programming little in QBasic.
When I try any examples I get always \ld.exe: cannot find... error
I found that I need "*.dll" files for Win, or "*.a" files for DOS (what needed for Linux I don't know)
Is there any place where I can download all files, examples need to run?

P.S. Why you don't distribute all files with FB. For new user it can be easier.
Cretin Ho
Posts: 182
Joined: Feb 04, 2021 13:01

Re: All Libraries DLLs to run examples

Post by Cretin Ho »

BasicJedi wrote:Hello I'm new to FreeBasic but I was programming little in QBasic.
When I try any examples I get always \ld.exe: cannot find... error
I found that I need "*.dll" files for Win, or "*.a" files for DOS (what needed for Linux I don't know)
Is there any place where I can download all files, examples need to run?

P.S. Why you don't distribute all files with FB. For new user it can be easier.
You add this to your compilation command: -Wl -Lthe/path/to/your/DLLs
e.g: fbc -Wl -LC:\FreeBASIC\DLLs
dodicat
Posts: 7995
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: All Libraries DLLs to run examples

Post by dodicat »

Here are some 32 bit libraries.
https://sourceforge.net/projects/fbc/fi ... Libraries/
To test any library, just put the .a or the .dll file in the same folder as your source code.
For exrernal libraries you usually have to google to find the one you want.
fb has already prepared many .bi files, in the inc folders, but it stops short at supplying every library file.
Usually you will get what you want after a few minutes googling, and links are often given by forum members using a particular library if you are stuck.
badidea
Posts: 2594
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: All Libraries DLLs to run examples

Post by badidea »

BasicJedi wrote:Hello I'm new to FreeBasic but I was programming little in QBasic.
When I try any examples I get always \ld.exe: cannot find... error
I found that I need "*.dll" files for Win, or "*.a" files for DOS (what needed for Linux I don't know)
Is there any place where I can download all files, examples need to run?

P.S. Why you don't distribute all files with FB. For new user it can be easier.
That would make the freebasic download much (10 times?) larger.
And more work for the maintainer(s), for every release collect the most recent library with license.
Many languages simplify the process with an additional package manager.

For linux the libraries are .so file, but in most cases no searching on the web is needed, often available in the distro repository.

BTW, I do agree that it would make working with freebasic easier for new and existing users.
BasicJedi
Posts: 13
Joined: Mar 21, 2021 13:38

Re: All Libraries DLLs to run examples

Post by BasicJedi »

badidea wrote: That would make the freebasic download much (10 times?) larger.
But what is the sense of including libraries which don't work?

You can distribute it for example in the second zip (one per OS for example) and link on homepage would be nice (or in documentation - links to lib authors are useless for FB users, only for C/C++)

Thanks for link dodicat, googling is always easier to say, harder to do :-)
Sometimes I'm spending hours googling for something interesting, I found before, but forgot to save url.
Last edited by BasicJedi on Mar 21, 2021 23:35, edited 1 time in total.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: All Libraries DLLs to run examples

Post by MrSwiss »

BasicJedi wrote:But what is the sense of including libraries which don't work?
The only things included are:
  • Header files *.bi
  • Examples files *.bas
The libraries themselfs (.dll/.so dynamic or .a static linkage) must be downloaded by the user ...
See: FB-Manual section External Libraries Index (for download links and more info).
BasicJedi
Posts: 13
Joined: Mar 21, 2021 13:38

Re: All Libraries DLLs to run examples

Post by BasicJedi »

Oops I started editing my post and dont see new answer, sorry
LonnieTC
Posts: 9
Joined: Aug 18, 2022 23:14

Re: All Libraries DLLs to run examples

Post by LonnieTC »

Hello All,

I am also new to FreeBASIC and have come across the 32-bit libraries on SourceForge

```
https://sourceforge.net/projects/fbc/fi ... Libraries/
```

I was wondering if there is a link to the 64-bit versions of these libraries somewhere as well?

Thanks in advance.
dodicat
Posts: 7995
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: All Libraries DLLs to run examples

Post by dodicat »

I don't think they have been updated to 64 bits also (YET)
Post Reply