Search found 1185 matches

by caseih
Jul 18, 2018 19:27
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

So if I interpret what was written here and in the bug report correctly, it's the GCC emitter that has the bug in it, correct? The GAS emitter is doing the right thing. The bug is not in FBC but in Lassar's declaration in the .bi file. I feel sheepish for not seeing that before. pnglib2 is a C-based...
by caseih
Jul 18, 2018 12:57
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

Thanks for the complete example. This should help those familiar with the compiler's inner workings figure out what is going wrong. I can confirm this appears to be a compiler bug in the gas emitter backend in fbc. -gen gcc does not appear to have this bug, although it cannot (with my installed vers...
by caseih
Jul 18, 2018 4:06
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

lassar wrote:The freebasic 1.05 compiler I am using is 32-bit.
So the result from this code is 4?

Code: Select all

dim as integer ptr g
print sizeof(g)

It would probably help if you posted a complete, self-contained, compile-able example that illustrated this apparent bug. And a link to where the .bi and .a files are.
by caseih
Jul 18, 2018 3:41
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

Is the .a file and the compiler 32-bit? If the compiler was 64-bit that would make the pointers 8 bytes each.
by caseih
Jul 18, 2018 1:44
Forum: Community Discussion
Topic: Compiled reality
Replies: 20
Views: 571

Re: Compiled reality

I'm not sure why the code compiles. set() is being called with no arguments, yet the function declaration clearly requires one. Something smells funny about this example code. Or am I missing something obvious?
by caseih
Jul 17, 2018 21:16
Forum: Community Discussion
Topic: Next generation name is FB++ ?
Replies: 66
Views: 2177

Re: Next generation name is FB++ ?

The whole reason for XML was a threat to the acceptance of closed formats (old .doc) by governments. It was not a technical decision, or anything that even related to any daily reality of ordinary office users. Yes that was a factor. But today with MS broadening itself out to other platforms includ...
by caseih
Jul 17, 2018 1:16
Forum: Community Discussion
Topic: Next generation name is FB++ ?
Replies: 66
Views: 2177

Re: Next generation name is FB++ ?

Not at all; you're reading in tone and innuendo where none was intended and really doesn't exist. I just see a propensity for some on this list to roll their own ad-hoc algorithms when a standard algorithm is often simpler and faster. Even If one is a low-level enthusiast then using existing such th...
by caseih
Jul 17, 2018 1:01
Forum: Linux
Topic: Detect Drive
Replies: 10
Views: 220

Re: Detect Drive

There are a number of ways to detect storage devices. It all depends on what init system your distribution is using. Most distros now use udev or something compatible with udev (systemd-udev). When events happen udev sets up the necessary dev entries. Most distros's udev setup creates a bunch of dev...
by caseih
Jul 16, 2018 22:33
Forum: Community Discussion
Topic: Next generation name is FB++ ?
Replies: 66
Views: 2177

Re: Next generation name is FB++ ?

The chm file works fast here (linux). The only crappy thing here is my current viewer "xCHM", KDE's "KCHM" works better. If it is slow, it is probably the virus scanner. Somehow Microsoft thought is was a good idea to make a 'Compiled Help File'. At one time, this would have pro...
by caseih
Jul 16, 2018 22:03
Forum: Community Discussion
Topic: Next generation name is FB++ ?
Replies: 66
Views: 2177

Re: Next generation name is FB++ ?

I have several interesting and well-tested ways to test the speed of data structures and algorithms. By this I hope you mean well-established and understood standard algorithms with good polynomial or logarithmic big-O runtimes, though I suspect you're referring to your own ad-hoc, brute-force meth...
by caseih
Jul 11, 2018 16:49
Forum: DOS
Topic: 32bit TSR
Replies: 35
Views: 610

Re: 32bit TSR

Yup it is/was a commercial program for running multiple DOS programs. https://en.wikipedia.org/wiki/DESQview Note that you cannot copy file safely in the background while your POS app is running. DOS simply has no multi-user or file locking capabilities that I know of. You might be able to close you...
by caseih
Jul 11, 2018 16:35
Forum: Community Discussion
Topic: Next generation name is FB++ ?
Replies: 66
Views: 2177

Re: Next generation name is FB++ ?

jj2007 wrote:
marcov wrote:CHM is internally a derivate of that.
Not really a recommendation: Loading Help\FB-manual-1.05.0.chm is incredibly slow.
Wait what? You are panning B+ trees because you find a particular file slow to load? Wow that's an interesting way to judge the use and speed of data structures and algorithms.
by caseih
Jul 11, 2018 1:12
Forum: Beginners
Topic: How to create a folder with unicode characters in its name
Replies: 28
Views: 466

Re: How to create a folder with unicode characters in its name

A check existence loop has some potential issues, though. What if you asked the shell to create a directory somewhere where you didn't have permission? It will fail silently, and your loop will wait indefinitely for a directory that will never exist. Far better to use the Win32 API calls Josep has r...
by caseih
Jul 10, 2018 15:16
Forum: Beginners
Topic: Another program icon via command line
Replies: 66
Views: 1327

Re: Another program icon via command line

That's right. AHK and FB are different tools for different purposes. The languages they each compile/interpret happen to resemble each other slightly, but that's about it.
by caseih
Jul 10, 2018 0:27
Forum: Windows
Topic: Stopping System Messages in Consol
Replies: 3
Views: 114

Re: Stopping System Messages in Consol

Can you redirect the output to NUL?

shell "copy foo bar > NUL"

or if it's still showing standard error,
shell "copy foo bar 2> NUL"

Go to advanced search