View Single Post
Old 20 April 2017, 21:30   #6
Registered User

Join Date: Mar 2017
Location: Minehead / UK
Posts: 562
Thank you for the info. I'll take a look at bebbos gcc. I didn't dig very deep the other night as it was getting late.

Since I'm now at the computer I was working on, here's an example from my attempt with cahirs toolchain:

cmake_minimum_required(VERSION 3.7)
project(gcc_test C)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -noixemul -fbaserel32 -m68020 -msmall-code")


set(SOURCE_FILES main.c)

add_executable(gcc_test ${SOURCE_FILES})
target_link_libraries(gcc_test libnix.a)
Note the double 'm68k-amigaos' and the seemingly double 'libnix' in that path. Just doesn't seem right but there were no instructions or guide so ??? Like I say, a MUI 'Hello World' built fine and ran on FS-UAE just fine. But I didn't really know what I was doing and it all seemed a bit fragile.

One slight oddity was the intellisence in CLion telling me that printf has too many arguments as it was expecting 0 - err??!! But hey!

I will go read up on bebbos gcc later.

oh, PS: no problem installing to /opt. That's non standard for Mac so the only thing that's there is this and I can give it whatever permissions l like

Last edited by MartinW; 20 April 2017 at 21:35. Reason: spelling
MartinW is offline  
Page generated in 0.04359 seconds with 11 queries