I cannot seem to locate this:
#include once "big_int/big_int_full.bi"
Anybody?
Missing Include Library
Re: Missing Include Library
Inside the 'inc' directory of FreeBASIC (for Windows).
Re: Missing Include Library
@storm5510
while the include is where fxm noted, the library is not included in the distribution but you can get the windows binary or build it yourself, see viewtopic.php?f=14&t=25082&p=224933#p224933
while the include is where fxm noted, the library is not included in the distribution but you can get the windows binary or build it yourself, see viewtopic.php?f=14&t=25082&p=224933#p224933
Re: Missing Include Library
It is not in what I have. If it is there, it must have a different name. I found, and downloaded, an archive mentioned in another post here...fxm wrote:Inside the 'inc' directory of FreeBASIC (for Windows).
Re: Missing Include Library
I believe I have a naming problem. In one of the test programs, there is this:
When I run the compiler, I get this:
This is in big_int.bi:
The actual name of the library is libbig_int.a. This is really scrambling my brain. Anyone?
Code: Select all
#include "big_int.bi"
Code: Select all
C:\FB\bin\win64\ld.exe cannot find -lbig_int
Code: Select all
#include once "big_int/big_int_full.bi"
Re: Missing Include Library
you need to either compile or download the library as suggested in my post above and place it in the lib\win64 folder
Re: Missing Include Library
Look at page Compiler Option: -l
-l < libname >
is the command to add the library libname to the linker's list:
- where '-l' is only a prefix to add a library file,
- and 'libname' is the user name of the library.
The internal name of the static library becomes 'lib < libname> .a' on the disk.
Therefore:
'-lbig_int' must be interpreted as '-l < big_int >'
=> user name of the library: 'big_int'
=> internal name of the library (on the disk): 'lib < big_int > .a' = 'libbig_int.a' (for a static library)
-l < libname >
is the command to add the library libname to the linker's list:
- where '-l' is only a prefix to add a library file,
- and 'libname' is the user name of the library.
The internal name of the static library becomes 'lib < libname> .a' on the disk.
Therefore:
'-lbig_int' must be interpreted as '-l < big_int >'
=> user name of the library: 'big_int'
=> internal name of the library (on the disk): 'lib < big_int > .a' = 'libbig_int.a' (for a static library)
Re: Missing Include Library
I did this, at the time. As it turned out, the compiler was not looking for it in lib\win64. It was looking for it in bin\win64. I do not know if this will be a problem in the future, or not.srvaldez wrote:you need to either compile or download the library as suggested in my post above and place it in the lib\win64 folder
Either way, it is working now. Thank you all for your replies.