19 November 2016, 11:29 | #1 |
Registered User
Join Date: Oct 2005
Location: Edinburgh
Age: 43
Posts: 84
|
gcc and cybergraphics
Hello people,
I'm trying to setup a dev environment for some C/C++ dev and I'm having a weird problem. I've done a small test in C to open a cybergraphics mode based on ADoom and while it compiles and works fine with SAS, I'm getting a crash or freeze with exactly the same code when compiled with GCC. The only differences I had to do in order to get the code compiling under gcc are to declare and manually open inuition/asl and gfxbase library (under SAS those was defined and opened), note that the code still compiles and run fine with SAS. I'm using the toolchain from here: https://github.com/cahirwpz/amigaos-cross-toolchain with the following params in my makefile: CFLAGS = -O2 -Wall -fomit-frame-pointer $(CC) -noixemul -msmall-code -m68020 $(CFLAGS) -o $@ $< Any helps would be greatly appreciated Thanks! |
19 November 2016, 12:50 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
-lauto should give you automatic open of gfx, asl and such. But anyway you most likely have to open cybergraphics,library manually.
|
19 November 2016, 13:14 | #3 |
Registered User
Join Date: Oct 2005
Location: Edinburgh
Age: 43
Posts: 84
|
Thanks thomas, I've indeed tried -lauto for the intuition/graphics library but GCC doesn't seems to have this library
|
20 November 2016, 04:08 | #4 |
Registered User
Join Date: Nov 2014
Location: FT Lewis, WA
Posts: 374
|
you might have to recompile the auto(s)(l)(r)(p) lib ... and include the auto opening and closing code of libraries for GCC.
Also check your installation. You might have missed it. Last edited by DH; 14 November 2017 at 17:28. Reason: Deleted direct signature |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GCC and GCCFindHit | tygre | Coders. Language | 2 | 20 February 2012 16:45 |
cybergraphics.library v41 | LuMan | support.Other | 5 | 07 December 2010 15:53 |
Which software for adding a Cybergraphics 64/3D card to an Amiga 2000? | polbit | support.Hardware | 12 | 06 February 2007 17:55 |
CyberGraphics 4.2 | CU_AMiGA | request.Other | 12 | 07 October 2006 16:20 |
StormC4/GCC | JoJo | Coders. General | 0 | 28 October 2002 09:38 |
|
|