English Amiga Board


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

 
 
Thread Tools
Old 19 February 2021, 12:16   #1
alancfrancis
Registered User
 
alancfrancis's Avatar
 
Join Date: Jun 2020
Location: Scotland
Posts: 146
amiga-gcc, nix and IFF

Me again, with another silly question.

I was working this morning to get the project I have working under VCC working on amiga-gcc and his something I don't quite understand. There are 4 or 5 exes using Amiga3.x libraries and most are successful.

The last exe in is linked from 2 object files. The first uses the nix time() function, the second uses IFFParseBase. By default m68k-amigaos-gcc complains about a missing reference to gettimeofday() at link... I tried -lnix but no joy.

Next I added -mcrt=clib2 (cargo-culting from the libcurl https example) and the time problem is solved, but now I get an undefined reference to IffParseBase.

So my layman's brain is telling me that the default crt setting isn't giving me access to unix functions but the libamiga in clib2 doesnt seem to be complete (at least grep tells me it contains DosBase but not IffParseBase).

Any help or suggestions or corrections in direction appreciated.

Alan

Last edited by alancfrancis; 19 February 2021 at 12:24.
alancfrancis is offline  
Old 19 February 2021, 12:24   #2
alancfrancis
Registered User
 
alancfrancis's Avatar
 
Join Date: Jun 2020
Location: Scotland
Posts: 146
Update: -lstubs -mcrt=clib2 seems to be the magic key :-)
alancfrancis is offline  
Old 22 February 2021, 09:12   #3
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Arrow

Quote:
Originally Posted by alancfrancis View Post
Update: -lstubs -mcrt=clib2 seems to be the magic key :-)

I prefer to use only:
-noixemul

PS: https://github.com/bebbo/amiga-gcc/wiki/Libraries
bebbo 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
I need An IFF/8SVX and an IFF/ANIM Player for PC searcher request.Apps 24 02 July 2020 12:09
Amiga *nix n00b Amiga1992 support.Amix 45 22 February 2017 08:02
Iff.library and gcc watertonian Coders. C/C++ 8 11 September 2015 08:23
Support section for AMIX and *NIX on the Amiga? Noth project.EAB 8 04 June 2015 10:07
PUAE 2.1.0 (amiga emulator for *nix systems) GnoStiC support.OtherUAE 56 27 July 2010 12: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 14:01.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06837 seconds with 15 queries