Search found 2119 matches

by srvaldez
Dec 11, 2019 8:13
Forum: Beginners
Topic: Type Mismatch
Replies: 11
Views: 275

Re: Type Mismatch

@storm5510 the function overloads the built-in mod operator for the bigint type, e.g. result = a mod b where the variables result, a and b are bigint exponent = bigint(2)^m_exp-1 that is correct, however if the number you want to use is longer than a signed 32-bit integer then you need to quote the ...
by srvaldez
Dec 11, 2019 0:32
Forum: Beginners
Topic: Type Mismatch
Replies: 11
Views: 275

Re: Type Mismatch

hello storm5510
you may want to check out this wrapper for gmp big integer viewtopic.php?f=7&t=25684
by srvaldez
Dec 10, 2019 19:16
Forum: Beginners
Topic: Type Mismatch
Replies: 11
Views: 275

Re: Type Mismatch

@storm5510
if you are assigning big numbers to a bigint variable, you must enclose the number in quotes, like:
a = "123456789199999999999999999999"
for numbers that fit in a long, you can do without the quotes
by srvaldez
Dec 10, 2019 18:31
Forum: Beginners
Topic: Type Mismatch
Replies: 11
Views: 275

Re: Type Mismatch

@storm5510 are you using "Big-Int overload.bi" ? No, I am not using "overload." I do not understand the meaning in this context. I am using big_int.bi . Result = (260198......182271 / ‭11225899906844061) mod ? This is going to take a lot more deep thought on my part... if you ar...
by srvaldez
Dec 10, 2019 14:41
Forum: Beginners
Topic: Type Mismatch
Replies: 11
Views: 275

Re: Type Mismatch

it seems that the function big_int_divmod does not work #include once "big_int/big_int_full.bi" dim as big_int ptr a, b, c, result dim status as long sub print_num (byval tpl as string, byval num as big_int ptr) dim as big_int_str ptr s s = big_int_str_create( 1 ) if( s = NULL ) then print...
by srvaldez
Dec 10, 2019 13:17
Forum: Beginners
Topic: Type Mismatch
Replies: 11
Views: 275

Re: Type Mismatch

@storm5510 are you using "Big-Int overload.bi" ? if so, in order to be consistent with that include you need to write a function like this function bigint_divmod (byref a As bigint, byref b As bigint, byref c As bigint) As bigint Dim As bigint result Dim status As Long status = big_int_div...
by srvaldez
Dec 03, 2019 14:28
Forum: Beginners
Topic: ZIP / UnZIP
Replies: 24
Views: 1865

Re: ZIP / UnZIP

@RoWa
I have disappointing news for you, libzip has like half a dozen or more dependencies and it would take more know-how than what I got to build a static lib or even a DLL
one can install a static libzip in msys2 but the dependencies are still there
by srvaldez
Dec 03, 2019 13:36
Forum: Libraries
Topic: Missing Include Library
Replies: 7
Views: 408

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
by srvaldez
Dec 03, 2019 12:56
Forum: Projects
Topic: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.
Replies: 7
Views: 327

Re: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.

very nice D.J.Peters :-)
is it possible to support sound as in this example? https://www.shadertoy.com/view/XtlSD7
by srvaldez
Dec 02, 2019 22:32
Forum: Beginners
Topic: ZIP / UnZIP
Replies: 24
Views: 1865

Re: ZIP / UnZIP

RoWa wrote:However: Up to date is LibZip version 1.5.2.
Is anybody able to compile a static (!!!) library v1.5.2 using MinGW/MSYS for Win32 ?

probably could be done, but it's not as simple as configuring and making because it uses CMake.
by srvaldez
Dec 01, 2019 17:40
Forum: Beginners
Topic: String Processing
Replies: 10
Views: 378

Re: String Processing

also, it's possible that the input string has one or more spaces before UID in which the test fails, in that case, use if left(Ltrim(Content),3) = "UID" then
by srvaldez
Dec 01, 2019 16:29
Forum: Linux
Topic: Library Path Problem
Replies: 7
Views: 294

Re: Library Path Problem

I am glad it's working for you
I mentioned the geany IDE because that's the one I am familiar with, but I think there's another cross-platform IDE called poseidon, you can find it the projects section
by srvaldez
Dec 01, 2019 10:56
Forum: Linux
Topic: Library Path Problem
Replies: 7
Views: 294

Re: Library Path Problem

@storm5510 your way of installing FreeBasic and trying to make it work is unnecessarily complex, here's how I would do it install FB via the shell script: sudo sh install.sh -i then install the necessary libraries sudo apt-get install libncurses-dev sudo apt-get install libx11-dev sudo apt-get insta...
by srvaldez
Dec 01, 2019 1:24
Forum: Libraries
Topic: Missing Include Library
Replies: 7
Views: 408

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

Go to advanced search