[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2006-11-30T09:17:43-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/1827 2006-11-30T09:17:43-05:00 2006-11-30T09:17:43-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13322#p13322 <![CDATA[freebasic compiling problems]]> 2. Get a different version of FB.

Statistics: Posted by Skyler — Thu Nov 30, 2006 9:17 am


]]>
2006-11-01T05:05:34-05:00 2006-11-01T05:05:34-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13087#p13087 <![CDATA[freebasic compiling problems]]> If any one in here cant help, then i recommend you to ask at www.freebasic.net forums. Alltho, buddies at here are clever enough prolly to figure out why it's not working.

There is alltho tens of places where you could do things more easily but if youre interested to know, ask when you got this version working fine.
Hopefully you got it soon.

Statistics: Posted by bungytheworm — Wed Nov 01, 2006 5:05 am


]]>
2006-11-01T05:05:24-05:00 2006-11-01T05:05:24-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13086#p13086 <![CDATA[freebasic compiling problems]]> www.freebasic.net/forum to get help with fb

http://fileanchor.com/75857-d

Statistics: Posted by RayBritton — Wed Nov 01, 2006 5:05 am


]]>
2006-10-31T23:42:10-05:00 2006-10-31T23:42:10-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13084#p13084 <![CDATA[freebasic compiling problems]]>
You are using the 0.17 unstable version, right?
0.17 has engaged in a new way and it has become very picky about DIMming variables, I can't tell you about labels as i never use them. To recover the QB-friendly behavior add to the command line the new option -lang qb

Code:

fbc -lang qb  mysource.bas
I tried using -lang qb with the FreeBasic Compiler and I continually get a command line error that says that it doesn't understand the command. I am indeed running 0.17. Ugh...

Here is my complete code for anyone interested in taking a crack at it:

http://spacebabes.org/uncle.bas

There is another version of the codewhere I tried dimming all the variables at the very beginning, but that didn't seem to do anything. I'm not quite sure I even understand what dimming does though.

Statistics: Posted by Andi — Tue Oct 31, 2006 11:42 pm


]]>
2006-10-24T14:42:16-05:00 2006-10-24T14:42:16-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13032#p13032 <![CDATA[freebasic compiling problems]]> 0.17 has engaged in a new way and it has become very picky about DIMming variables, I can't tell you about labels as i never use them. To recover the QB-friendly behavior add to the command line the new option -lang qb

Code:

fbc -lang qb  mysource.bas
This will allow you to code in a more QB'ish manner, but will keep you from using the more advanced features of the language. see
http://www.freebasic.net/wiki/wikka.php ... erDialects
for more information.

Statistics: Posted by Antoni — Tue Oct 24, 2006 2:42 pm


]]>
2006-10-24T06:02:31-05:00 2006-10-24T06:02:31-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13029#p13029 <![CDATA[freebasic compiling problems]]> Statistics: Posted by RayBritton — Tue Oct 24, 2006 6:02 am


]]>
2006-10-24T04:01:43-05:00 2006-10-24T04:01:43-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13028#p13028 <![CDATA[freebasic compiling problems]]> implict variable allocation means you have a bug in your source...lol ok. You have problem with variables. Cant point it directly anywhere since cant see your source.

Statistics: Posted by bungytheworm — Tue Oct 24, 2006 4:01 am


]]>
2006-10-23T18:17:35-05:00 2006-10-23T18:17:35-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=13025#p13025 <![CDATA[freebasic compiling problems]]>
C:\qbfiles\fbasic>fbc example/uncle.bas
example/uncle.bas(1543) : warning level 0: Implicit variable allocation, rathole3num
example/uncle.bas(2420) : warning level 0: Implicit variable allocation, pianonum
example/uncle.bas(3046) : warning level 0: Implicit variable allocation, paintingnum
example/uncle.bas(290) : error 95: Branching to other SUB's/FUNCTION's or to mod
ule-level, to label: ROOM1
example/uncle.bas() : error 48: Undefined label, ROOM1
example/uncle.bas() : error 48: Undefined label, STORY
example/uncle.bas() : error 48: Undefined label, HELP
example/uncle.bas() : error 48: Undefined label, ABOUT
example/uncle.bas() : error 48: Undefined label, LOG1
example/uncle.bas() : error 48: Undefined label, LOG2
example/uncle.bas() : error 48: Undefined label, LOG3
example/uncle.bas() : error 48: Undefined label, VINE1
example/uncle.bas() : error 48: Undefined label, VINE2
example/uncle.bas() : error 120: Too many errors, exiting
Here is the beginning of my code. This code works fine when running inside of Qbasic itself. I edited out the sub declarations at the beginning.

Code:

start: CLStreasurenum = 0revolvernum = 0armsnum = 0bulletnum = 0vinenum = 0hammernum = 0key1num = 0lanternnum = 0shovelnum = 0ballnum = 0key2num = 0key3num = 0laddernum = 0acidnum = 0apekillnum = 0new = 1log1num = 0log3num = 0vine2num = 0gravenum = 0pitnum1 = 0pitnum2 = 0moundnum = 0arm2num = 0arm3num = 0arm4num = 0grassnum = 0pantherkillnum = 0dogkillnum = 0benchnum = 0tdoor1num = 0tdoor2num = 0bucketnum = 0hole1num = 0bricknum = 0cranknum = 0dropnum = 0mutantkillnum = 0rathole1num = 0rathole2num = 0rathol3num = 0door14num = 0pouchnum = 0chestnum = 0ballcount = 0rashnum = 0rashcount = 0orchidcount = 0skeletonnum = 0engravenum = 0catnum = 0eelnum = 0clocknum = 0engravecount = 0tdoor2num = 0dogrunnum = 0spicenum = 0spicekillnum = 0bagnum = 0woodchestnum = 0biscuitnum = 0mechmannum = 0maneatnum = 0vaultnum = 0ballgrabnum = 0winnum = 0bednum = 0pillownum = 0levernum = 0safenum = 0flowernum = 0flashnum = 0kawandusnum = 0hogkillnum = 0hammerdoor = 0COLOR 8PRINT "                                 Uncle Andrew's Manor"PRINT ""COLOR 3PRINT "                                 A game by Andi Hagen"PRINT ""COLOR 6PRINT "(a) begin"PRINT "(b) story"PRINT "(c) instructions"PRINT "(d) about"PRINT "(e) quit"PRINT ""COLOR 7PRINT "What is your choice"; : INPUT choice$IF choice$ = "a" THEN GOTO room1IF choice$ = "b" THEN GOTO storyIF choice$ = "c" THEN GOTO helpIF choice$ = "d" THEN GOTO aboutIF choice$ = "e" THEN GOTO quitGOTO startstory:CALL storyGOTO starthelp:CALL helpGOTO startquit: ENDabout:CALL aboutGOTO start''''''''''''''''''''''''''''''''''''''''''''''room1:IF ballnum = 1 THEN ballcount = ballcount + 1IF ballcount = 10 THEN CALL ballboom GOTO startEND IF
Does anyone know what those error codes are caused by? Do I have to define my line labels differently or something? And what does "implict variable allocation" mean?

Thanks a lot.

Statistics: Posted by Andi — Mon Oct 23, 2006 6:17 pm


]]>