English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 19 November 2016, 12:29   #1
zeGouky
Registered User
 
Join Date: Oct 2005
Location: Edinburgh
Age: 39
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!
zeGouky is offline  
Old 19 November 2016, 13:50   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,869
-lauto should give you automatic open of gfx, asl and such. But anyway you most likely have to open cybergraphics,library manually.
thomas is offline  
Old 19 November 2016, 14:14   #3
zeGouky
Registered User
 
Join Date: Oct 2005
Location: Edinburgh
Age: 39
Posts: 84
Thanks thomas, I've indeed tried -lauto for the intuition/graphics library but GCC doesn't seems to have this library
zeGouky is offline  
Old 20 November 2016, 05:08   #4
Saghalie
Registered User

Saghalie's Avatar
 
Join Date: Nov 2014
Location: McChord AFB, KS
Posts: 243
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 18:28. Reason: Deleted direct signature
Saghalie is offline  
 


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 17:45
cybergraphics.library v41 LuMan support.Other 5 07 December 2010 16:53
Which software for adding a Cybergraphics 64/3D card to an Amiga 2000? polbit support.Hardware 12 06 February 2007 18:55
CyberGraphics 4.2 CU_AMiGA request.Other 12 07 October 2006 17:20
StormC4/GCC JoJo Coders. General 0 28 October 2002 10:38

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:28.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06065 seconds with 13 queries