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.
All Libraries DLLs to run examples
Re: All Libraries DLLs to run examples
You add this to your compilation command: -Wl -Lthe/path/to/your/DLLsBasicJedi 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.
e.g: fbc -Wl -LC:\FreeBASIC\DLLs
Re: All Libraries DLLs to run examples
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.
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.
Re: All Libraries DLLs to run examples
That would make the freebasic download much (10 times?) larger.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.
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.
Re: All Libraries DLLs to run examples
But what is the sense of including libraries which don't work?badidea wrote: That would make the freebasic download much (10 times?) larger.
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.
Re: All Libraries DLLs to run examples
The only things included are:BasicJedi wrote:But what is the sense of including libraries which don't work?
- Header files *.bi
- Examples files *.bas
See: FB-Manual section External Libraries Index (for download links and more info).
Re: All Libraries DLLs to run examples
Oops I started editing my post and dont see new answer, sorry
Re: All Libraries DLLs to run examples
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.
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.
Re: All Libraries DLLs to run examples
I don't think they have been updated to 64 bits also (YET)