New SICK project
#6
Exclamation 
I had QB64 PE v0.6 thus I decided to upgrade to v0.8.2. I moved all the BAS files and a few others into the same directory as QB64.exe because I had a hard time otherwise. But trying to compile "SIC64.BAS" I get C++ compilation errors.

Code: (Select All)
Directory of C:\Users\fc\A\QBPE

07/30/2022  03:58 AM    <DIR>          .
07/30/2022  03:58 AM    <DIR>          ..
08/17/2018  09:44 PM            22,448 ANALYZE.BAS
06/11/2022  10:21 AM            1,597 CHANGELOG.md
06/11/2022  10:21 AM                61 COPYING.txt
08/17/2018  09:44 PM            7,496 INDENT.BAS
06/11/2022  10:21 AM    <DIR>          internal
06/11/2022  10:04 AM    <DIR>          licenses
06/11/2022  10:21 AM            9,239 Makefile
07/23/2016  10:55 PM            2,985 MEM.H
06/16/2022  10:35 AM    <DIR>          QB64-MOD-Player-main
06/11/2022  10:21 AM              932 qb64.1
06/11/2022  10:21 AM        8,805,928 qb64.exe
06/11/2022  10:21 AM            2,271 README.md
08/17/2018  09:44 PM            19,481 RENUMBER.BAS
08/17/2018  09:45 PM            8,641 SIC.INC
05/30/2022  12:33 AM          672,318 SIC64.BAS
05/07/2022  12:33 AM            85,182 SIC64.ICO
08/17/2018  09:44 PM            4,864 SICHELP.BAS
07/30/2022  02:12 AM    <DIR>          SICK64D6
06/11/2022  10:04 AM    <DIR>          source
              14 File(s)      9,643,443 bytes
              7 Dir(s)  392,541,564,928 bytes free

C:\Users\fc\A\QBPE>qb64 -x sic64.bas
QB64 Compiler V0.8.2

Beginning C++ output from QB64 code...
[................................................. ] 98%
Beginning C++ output from QB64 code...
[..................................................] 100%

Compiling C++ code into EXE...
ERROR: C++ compilation failed.
Check .\internal\temp\compilelog.txt for details.

C:\Users\fc\A\QBPE>type internal\temp\compilelog.txt
internal\c\c_compiler\bin\c++.exe  -w -DGLEW_STATIC -DFREEGLUT_STATIC -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_PRINTER -DDEPENDENCY_ICON -DDEPENDENCY_NO_SCREENIMAGE -DDEPENDENCY_AUDIO_CONVERSION -DDEPENDENCY_AUDIO_DECODE -DDEPENDENCY_AUDIO_OUT internal\c/libqb.cpp -c -o internal\c/libqb/libqb_make_0000110001110.o
internal\c\c_compiler\bin\c++.exe  -w -DGLEW_STATIC -DFREEGLUT_STATIC -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_PRINTER -DDEPENDENCY_ICON -DDEPENDENCY_NO_SCREENIMAGE -DDEPENDENCY_AUDIO_CONVERSION -DDEPENDENCY_AUDIO_DECODE -DDEPENDENCY_AUDIO_OUT internal\c/qbx.cpp -c -o internal\c/qbx.o
internal\c\c_compiler\bin\windres.exe -i internal\temp\icon.rc -o internal\temp\icon.o
internal\c\c_compiler\bin\objcopy.exe -Ibinary -Oelf64-x86-64 -Bi386:x86-64 internal\temp/data.bin internal\temp/data.o
internal\c\c_compiler\bin\gcc.exe -Wall internal\c/parts/audio/conversion/src/resample.c -c -o internal\c/parts/audio/conversion/src/resample.o
internal\c\c_compiler\bin\gcc.exe -Wall internal\c/parts/audio/decode/mp3_mini/src/minimp3.c -c -o internal\c/parts/audio/decode/mp3_mini/src/minimp3.o
internal\c/parts/audio/decode/mp3_mini/src/minimp3.c: In function 'mp_decode_layer3':
internal\c/parts/audio/decode/mp3_mini/src/minimp3.c:2105:39: warning: variable 'private_bits' set but not used [-Wunused-but-set-variable]
    int nb_granules, main_data_begin, private_bits;
                                      ^~~~~~~~~~~~
internal\c/parts/audio/decode/mp3_mini/src/minimp3.c: In function 'mp3_decode_main':
internal\c/parts/audio/decode/mp3_mini/src/minimp3.c:2384:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if (s->error_protection)
    ^~
internal\c/parts/audio/decode/mp3_mini/src/minimp3.c:2387:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
        nb_frames = mp_decode_layer3(s);
        ^~~~~~~~~
internal\c/parts/audio/decode/mp3_mini/src/minimp3.c: In function 'mp3_decode_init':
internal\c/parts/audio/decode/mp3_mini/src/minimp3.c:2451:26: warning: variable 'n' set but not used [-Wunused-but-set-variable]
            unsigned int n;
                          ^
internal\c\c_compiler\bin\gcc.exe -Wall internal\c/parts/audio/decode/ogg/src/stb_vorbis.c -c -o internal\c/parts/audio/decode/ogg/src/stb_vorbis.o
internal\c\c_compiler\bin\gcc.exe -Wall -D AL_LIBTYPE_STATIC internal\c/parts/audio/out/src/winmm.c -c -o internal\c/parts/audio/out/src/winmm.o
In file included from internal\c/qbx.cpp:2514:
internal\c/..\\temp\\main.txt: In function 'void SUB_WRITECONFIG()':
internal\c/..\\temp\\main.txt:67267:109: error: cast from 'HANDLE' {aka 'void*'} to 'int' loses precision [-fpermissive]
*__UOFFSET_HFIND=(  int32  )CreateFile((char*)(_SUB_WRITECONFIG_STRING_F)->chr, 384 ,NULL,NULL, 2 ,NULL,NULL);
                                                                                                            ^
In file included from internal\c/qbx.cpp:2514:
internal\c/..\\temp\\main.txt: In function 'void SUB_MENU3()':
internal\c/..\\temp\\main.txt:75416:112: error: cast from 'HANDLE' {aka 'void*'} to 'int' loses precision [-fpermissive]
*_SUB_MENU3_OFFSET_HFIND4=(  int32  )CreateFile((char*)(_SUB_MENU3_STRING_F)->chr, 384 ,NULL,NULL, 4 ,NULL,NULL);
                                                                                                                ^
internal\c/..\\temp\\main.txt:75498:112: error: cast from 'HANDLE' {aka 'void*'} to 'int' loses precision [-fpermissive]
*_SUB_MENU3_OFFSET_HFIND4=(  int32  )CreateFile((char*)(_SUB_MENU3_STRING_F)->chr, 384 ,NULL,NULL, 1 ,NULL,NULL);
                                                                                                                ^
mingw32-make: *** [Makefile:337: internal\c/qbx.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....

Previously with QB64 PE v0.6 I only got the "warning" related to "CreateFile" function listed a few lines from the bottom of "code" window.

There were a few error messages about "audio" and "conversion" and "MP3" so I ventured compiling my "diverseplay.bas" with the latest QB64 PE and succeeded.  So I don't know what's going on or if it's just my computer.
Reply


Messages In This Thread
New SICK project - by eoredson - 07-06-2022, 12:44 AM
RE: New SICK project - by mnrvovrfc - 07-27-2022, 09:53 PM
RE: New SICK project - by eoredson - 07-28-2022, 05:40 AM
RE: New SICK project - by aurel - 07-27-2022, 11:07 PM
RE: New SICK project - by mnrvovrfc - 07-28-2022, 10:33 PM
RE: New SICK project - by mnrvovrfc - 07-30-2022, 08:20 AM
RE: New SICK project - by Pete - 07-30-2022, 03:20 PM
RE: New SICK project - by eoredson - 08-09-2022, 03:23 AM
RE: New SICK project - by mnrvovrfc - 08-09-2022, 03:45 AM
RE: New SICK project - by eoredson - 08-09-2022, 05:55 AM
RE: New SICK project - by mnrvovrfc - 08-12-2022, 04:59 PM
RE: New SICK project - by eoredson - 08-16-2022, 06:02 AM
RE: New SICK project - by eoredson - 08-16-2022, 07:12 AM



Users browsing this thread: 6 Guest(s)