Maybe just your virus-scanner interfering ...srvaldez wrote:I don't know what's going on, no binaries, maybe this will work
(try with it switched OFF, for the test)
Maybe just your virus-scanner interfering ...srvaldez wrote:I don't know what's going on, no binaries, maybe this will work
Thank you @srvaldez you have been very helpful and I learned a lot. I'll write some code and see how it goes. If it doesn't go well I'll install fbc on my Windows machine or linux machine where it's supported but my primary is Mac.srvaldez wrote:@sitrucz
when I was using High Sierra and decided to give Mojave a try, fbc on Mojave would give some error about dylib table something, everything worked after building fbc on mojave.
I think that the same problem exist for Catalina, I have Catalina on a VM on the mac but never really used it, today I compiled a simple program and it compiled with no complaints but when trying to run the program it would give the same dylib table something message
I tried building fbc but ran into missing header problems, so I gave up
Code: Select all
case FB_COMPTARGET_LINUX, FB_COMPTARGET_DARWIN, _
FB_COMPTARGET_FREEBSD, FB_COMPTARGET_OPENBSD, _
FB_COMPTARGET_NETBSD
if( fbGetOption( FB_COMPOPT_OUTTYPE ) = FB_OUTTYPE_EXECUTABLE) then
if( fbGetOption( FB_COMPOPT_PROFILE ) ) then
select case as const fbGetOption( FB_COMPOPT_TARGET )
case FB_COMPTARGET_OPENBSD, FB_COMPTARGET_NETBSD
ldcline += hFindLib( "gcrt0.o" )
case else
ldcline += hFindLib( "gcrt1.o" )
end select
else
select case as const fbGetOption( FB_COMPOPT_TARGET )
case FB_COMPTARGET_OPENBSD, FB_COMPTARGET_NETBSD
ldcline += hFindLib( "crt0.o" )
''case else '<--
'' ldcline += hFindLib( "crt1.o" ) '<--
end select
end if
end if
Thank you so much I compiled and ran a basic program. I found I need to have gcc as the current compiler. fbc seems to need it as opposed to Xcode's clang.
What do you mean by "recommend"? What happens if you don't do it?srvaldez wrote:I recommend that you edit fbc.bas which is in the src/compiler folder and comment-out lines 846 and 847 (they could be different numbers)
Code: Select all
> fbc -gen gcc -asm att -r -m ztest ztest.bas
> clang ztest.c -c -o ztest.o -Wno-builtin-requires-header -Wno-incompatible-library-redeclaration
> fbc ztest.o
Your zip files are no longer accessible. Can you republish them?
Thanks!srvaldez wrote:here's the Catalina version
fbc-mac-Catalina