02-21-2023, 09:32 AM
QB64Shell Don't run
|
02-21-2023, 11:25 AM
(This post was last modified: 02-21-2023, 11:26 AM by mnrvovrfc.
Edit Reason: Added link to other thread
)
This is one of eoredson's programs, right?
It looks like he declared a function assuming 32-bit and you're trying to use it in a 64-bit system. Might have to ask him to fix it. You should have found the thread about QB64 Shell to post this in, to better get his attention. https://qb64phoenix.com/forum/showthread.php?tid=1211
02-22-2023, 07:40 AM
(02-21-2023, 11:25 AM)mnrvovrfc Wrote: This is one of eoredson's programs, right? That is my program. Someone must have changed the $Include and the $Exeicon.. They should point to \qb64pe Erik.
02-22-2023, 01:51 PM
internal\c\c_compiler\bin\c++.exe -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_PRINTER -DDEPENDENCY_ICON -DDEPENDENCY_NO_SCREENIMAGE -DDEPENDENCY_AUDIO_MINIAUDIO 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 In file included from internal\c/qbx.cpp:2349: internal\c/../temp/main.txt: In function 'void SUB_INITPROFILES()': internal\c/../temp/main.txt:6656:33: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 6656 | *_SUB_INITPROFILES_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_INITPROFILES_STRING_F)->chr, 384 ,NULL,NULL, 2 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_WRITECONFIG()': internal\c/../temp/main.txt:8250:32: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 8250 | *_SUB_WRITECONFIG_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_WRITECONFIG_STRING_F)->chr, 384 ,NULL,NULL, 2 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_PREPARSE(qbs*, int16_t*, int16_t*)': internal\c/../temp/main.txt:10458:29: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 10458 | *_SUB_PREPARSE_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_PREPARSE_STRING_F)->chr, 384 ,NULL,NULL, 3 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt:10512:29: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 10512 | *_SUB_PREPARSE_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_PREPARSE_STRING_F)->chr, 384 ,NULL,NULL, 4 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt:10566:29: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 10566 | *_SUB_PREPARSE_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_PREPARSE_STRING_F)->chr, 384 ,NULL,NULL, 4 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_MENU()': internal\c/../temp/main.txt:43102:25: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 43102 | *_SUB_MENU_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_MENU_STRING_F)->chr, 384 ,NULL,NULL, 4 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt:43189:25: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 43189 | *_SUB_MENU_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_MENU_STRING_F)->chr, 384 ,NULL,NULL, 1 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_SCRNEDIT(qbs*, int16_t*, int16_t*)': internal\c/../temp/main.txt:58995:29: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 58995 | *_SUB_SCRNEDIT_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_SCRNEDIT_STRING_F)->chr, 384 ,NULL,NULL, 1 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_MAKDIR(int16_t*)': internal\c/../temp/main.txt:74074:27: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 74074 | *_SUB_MAKDIR_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_MAKDIR_STRING260_ASCIIZ)->chr, 384 , 3 ,NULL, 3 , 33554432 ,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_DELDIR(int16_t*)': internal\c/../temp/main.txt:75007:27: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 75007 | *_SUB_DELDIR_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_DELDIR_STRING260_ASCIIZ)->chr, 384 , 3 ,NULL, 3 , 33554432 ,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_MAKEFILE(int16_t*)': internal\c/../temp/main.txt:75710:29: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 75710 | *_SUB_MAKEFILE_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_MAKEFILE_STRING260_ASCIIZ)->chr, 384 ,NULL,NULL, 1 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_SORTFILES()': internal\c/../temp/main.txt:82079:30: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 82079 | *_SUB_SORTFILES_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_SORTFILES_STRING_F)->chr, 384 ,NULL,NULL, 4 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_COPYIT_PROCESSFILELIST(qbs*, int16_t*)': internal\c/../temp/main.txt:85686:43: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 85686 | *_SUB_COPYIT_PROCESSFILELIST_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_COPYIT_PROCESSFILELIST_STRING260_ASCIIZ)->chr, 384 , 3 ,NULL, 3 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_COPYIT_OPENFILE(int16_t*)': internal\c/../temp/main.txt:88617:36: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 88617 | *_SUB_COPYIT_OPENFILE_OFFSET_HFIND=( int32 )CreateFile((char*)(__STRING260_ASCIIZFILE)->chr, 384 , 3 ,NULL, 3 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_COPYIT_EXTENDEDFILE(int16_t*)': internal\c/../temp/main.txt:88910:40: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 88910 | *_SUB_COPYIT_EXTENDEDFILE_OFFSET_HFIND=( int32 )CreateFile((char*)(__STRING260_ASCIIZCOPY)->chr, 384 , 3 ,NULL, 3 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt:88987:40: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 88987 | *_SUB_COPYIT_EXTENDEDFILE_OFFSET_HFIND=( int32 )CreateFile((char*)(__STRING260_ASCIIZFILE)->chr, 384 , 3 ,NULL, 3 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_COPYIT_PROCESSCOMMAND(int16_t*)': internal\c/../temp/main.txt:89621:42: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 89621 | *_SUB_COPYIT_PROCESSCOMMAND_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_COPYIT_PROCESSCOMMAND_STRING260_ASCIIZ2)->chr, 384 , 3 ,NULL, 3 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_COPYIT_DISPLAYERROR(qbs*)': internal\c/../temp/main.txt:98828:40: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 98828 | *_SUB_COPYIT_DISPLAYERROR_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_COPYIT_DISPLAYERROR_STRING_F)->chr, 384 ,NULL,NULL, 4 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_TOUCHFILE(qbs*, qbs*)': internal\c/../temp/main.txt:122240:30: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 122240 | *_SUB_TOUCHFILE_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_TOUCHFILE_STRING260_ASCIIZ)->chr, 384 , 3 ,NULL, 3 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_TOUCHDIRECTORY(qbs*, qbs*)': internal\c/../temp/main.txt:124022:35: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 124022 | *_SUB_TOUCHDIRECTORY_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_TOUCHDIRECTORY_STRING260_ASCIIZ)->chr, 384 , 3 ,NULL, 3 , 33554432 ,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_MENU3(qbs*, qbs*, qbs*, qbs*, qbs*)': internal\c/../temp/main.txt:136773:26: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 136773 | *_SUB_MENU3_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_MENU3_STRING_G)->chr, 384 ,NULL,NULL, 1 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ internal\c/../temp/main.txt: In function 'void SUB_WRITEMENUCONFIG()': internal\c/../temp/main.txt:146578:36: error: cast from 'HANDLE' {aka 'void*'} to 'int32_t' {aka 'int'} loses precision [-fpermissive] 146578 | *_SUB_WRITEMENUCONFIG_OFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_WRITEMENUCONFIG_STRING_F)->chr, 384 ,NULL,NULL, 2 ,NULL,NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mingw32-make: *** [Makefile:417: internal\c/qbx.o] Error 1
02-23-2023, 04:17 AM
It appears you might have a mangled version of my QBshell project.
The $Include and $Exeicon are pointing to "D:\.. which it should not. Your best bet is to get the original source from: https://qb64phoenix.com/forum/showthread.php?tid=1211 I don't pretend to know what the above compiler text error is but if you could indicate which line number it is producing an error is at I may be able to help. Erik.
02-23-2023, 02:44 PM
Change line 806 in qb64shell.inc from
Declare Library TO Declare CustomType Library So, in the end it should look like: Code: (Select All) Declare CustomType Library |
« Next Oldest | Next Newest »
|
Users browsing this thread: 3 Guest(s)