Search found 1844 matches

by coderJeff
Jan 20, 2019 10:56
Forum: Community Discussion
Topic: Moderator's Environment and Tools.
Replies: 4
Views: 220

Re: Moderator's Environment and Tools.

The lack of a hidden management forum... Yup, created. Like 4 weeks ago just after the nominations wrapped up. > There is no job description for the tasks expected of an FB moderator. Broad terms were laid out in the first post of the nomination threads. To be further defined as we go along. > Noth...
by coderJeff
Jan 19, 2019 14:01
Forum: Windows
Topic: Can't we use SHELL32 dll like USER32?
Replies: 10
Views: 185

Re: Can't we use SHELL32 dll like USER32?

fbc looks for files relative to where it is installed and depends on if it is the normal or standalone version. I think the most concise description of where files are supposed to be located can be found here: Normal vs. Standalone FreeBASIC For example, in standalone packages, win32 & win64 can...
by coderJeff
Jan 18, 2019 22:26
Forum: Windows
Topic: Can't we use SHELL32 dll like USER32?
Replies: 10
Views: 185

Re: Can't we use SHELL32 dll like USER32?

Thanks. I guess I don't even have a good version of GCC: Not sure of everything that you might have installed and where. In the fbc folder should be sub-folders: ./lib/win32/libshell32.dll.a -- import lib for 32-bit ./lib/win64/libshell32.dll.a -- import lib for 64-bit And fbc should just find them...
by coderJeff
Jan 18, 2019 22:17
Forum: Community Discussion
Topic: Building FreeBASIC 1.06 Release
Replies: 11
Views: 780

Re: Building FreeBASIC 1.06 Release

BUILDING FOR DOS VERSION If any other interested person wants to join in on this ... :) I use a XP VM for the DOS build. Haven't invested that much time as it's not a very relevant target IMHO. But I'd also favor a cross build env, so please let us know about you're findings if you get it to work. ...
by coderJeff
Jan 10, 2019 22:19
Forum: General
Topic: How to translate a label to a string and concatenate a underscore in front of it.
Replies: 8
Views: 222

Re: How to translate a label to a string and concatenate a underscore in front of it.

Maybe you want just ' #_name_ ' then? fbc automatically adds the underscore, and suffix, but only if it is needed for the target platform. Seems to be OK since fbc-0.14 -gen gas. #define declare_function(_name_) declare function _name_ alias #_name_ declare_function(func) () as integer I don't know ...
by coderJeff
Jan 10, 2019 19:51
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 410

Re: Compiler tests

Running "make unit-tests" i see 10 fails in wstring\utf_conv.bas - is this correct ? These tests are not expected to fail. Maybe results depend on language code page? - wstring\utf_conv.bas source file has extended ASCII characters ( >= chr(128) ) - I am running on Win 7, code page 850 So...
by coderJeff
Jan 10, 2019 19:40
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 410

Re: Compiler tests

FAILED LOG - for log-tests -lang fb ./cpp/mangle.log:cpp/mangle.bmk : RESULT=FAILED ./functions/stack-align/stack-alignment.log:functions/stack-align/stack-alignment.bmk : RESULT=FAILED ./namespace/cpp/cpp.log:namespace/cpp/cpp.bmk : RESULT=FAILED Is this expected ? This is not expected, though it ...
by coderJeff
Jan 10, 2019 19:31
Forum: General
Topic: How to translate a label to a string and concatenate a underscore in front of it.
Replies: 8
Views: 222

Re: How to translate a label to a string and concatenate a underscore in front of it.

Possibly what FB should do is allow any constant string expression for the Alias. (Or allow underscores to be used symbolically, but only under very specific circumstances...) Or maybe an "unstringize()" function to unquote arguments in the pre-processor. Taking a literal string, or const...
by coderJeff
Jan 10, 2019 19:28
Forum: General
Topic: How to translate a label to a string and concatenate a underscore in front of it.
Replies: 8
Views: 222

Re: How to translate a label to a string and concatenate a underscore in front of it.

Joshy, should work with fbc-0.16 to fbc-1.06. tested on win 32-bit. so should work either STDCALL or CDECL Prefix ALIAS with '_': '' trick fbc to have an alias that starts with '_' #define begin_() "_ #define prefix_(arg) begin_()##arg" #define declare_function(n) declare function n alias ...
by coderJeff
Jan 09, 2019 1:51
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 410

Re: Compiler tests

The command "printf" was misspelled or could not be found What is wrong? "printf" in this case is a shell command, like from bash shell. instead of setting up everything for a working environment yourself i recommend to use msys2 https://www.msys2.org/ or similar preconfigured e...
by coderJeff
Jan 08, 2019 22:24
Forum: General
Topic: const as union
Replies: 8
Views: 200

Re: const as union

CONST as described in CONST wiki page , even though it has a data type, is handled like a literal. Only the compiler knows about it's type. No memory is allocated for it and, can't take the address of it. #define x0 cint(0) const as integer x1 = 1 dim as integer x2 = 2 print @x0 '' error print @x1 '...
by coderJeff
Jan 07, 2019 0:42
Forum: Documentation
Topic: Wiki improvements
Replies: 253
Views: 14690

Re: Wiki improvements

I would say it depends on what you want to do with ASC() to decide if it is desirable or undesirable. Otherwise, I would guess it probably doesn't matter. For ASC("a") , not really passing a literal argument "a" to ASC() function; it's an alternative way of writing 97u . ...
by coderJeff
Jan 06, 2019 3:20
Forum: Community Discussion
Topic: Building FreeBASIC 1.06 Release
Replies: 11
Views: 780

Re: Building FreeBASIC 1.06 Release

my RPi currently in my garden used as a lightweight wetterstation so i cant test it today with this OS. LOL, ... wetterstation = weather station. At first I thought you meant "to water", as in bewässern. Because in english, "wetter" means to have more water. In 1998, i wrote a Q...
by coderJeff
Jan 06, 2019 2:14
Forum: General
Topic: #macro Elipsis and #if not working together
Replies: 2
Views: 117

Re: #macro Elipsis and #if not working together

Good find, wallyg. This is part feature request & part bug. fbc does not support recursive #macro or #define , but also doesn't error in non-trivial cases either. Example #1 , simulates what we are trying to do: #macro MX( X, args... ) #print " MX()" #print " X = " #X #print ...
by coderJeff
Jan 04, 2019 17:32
Forum: Community Discussion
Topic: Building FreeBASIC 1.06 Release
Replies: 11
Views: 780

Re: Building FreeBASIC 1.06 Release

St_W, thanks for the info. And also thank you for creating the on going compiler builds. Yeah, I don't have much interest in the DOS port. A few times I thought of just giving up on it. For now, I will give it my best effort to make it work for this next release. After that, I don't know, I may leav...

Go to advanced search