English Amiga Board


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

 
 
Thread Tools
Old 28 August 2023, 00:37   #1
Sim085
Registered User
 
Join Date: Apr 2009
Location: N/A
Posts: 962
Header for ASOT_PORT?

I am trying to get the example here (https://wiki.amigaos.net/wiki/Exec_Messages_and_Ports) to work for Workbench 3.1. I changed the syntax, example IExec->AllocSysObject to just AllocSysObject but continue to get an error "unknown identifier" ASOT_PORT.


Anyone knows what the header that includes the definition for ASOT_PORT is? also how would one go about identify the correct header when receiving similar errors?
Sim085 is offline  
Old 28 August 2023, 01:32   #2
Docent
Registered User
 
Join Date: Mar 2019
Location: Poland
Posts: 59
AllocSysObject is not available in version 3.1 - it is available starting from version 4.
To make these examples work on 3.1 you need to replace AllocSysObject with AllocVec or AllocMem and FreeSysObject with FreeVec or FreeMem respectively.
Docent is offline  
Old 28 August 2023, 08:32   #3
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by Sim085 View Post
I am trying to get the example here (https://wiki.amigaos.net/wiki/Exec_Messages_and_Ports) to work for Workbench 3.1. I changed the syntax, example IExec->AllocSysObject to just AllocSysObject but continue to get an error "unknown identifier" ASOT_PORT.


Anyone knows what the header that includes the definition for ASOT_PORT is? also how would one go about identify the correct header when receiving similar errors?

read that page again:


'Prior to V50 of the operating system, functions such as CreatePort() and CreateMsgPort() were often used.'


Better use examples for your target system.
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
Amiga 1200 with no clockport header pins bitter support.Hardware 3 07 November 2022 07:30
CDTV ROM header..what is it for? BusMaster support.Hardware 2 07 April 2022 22:18
Using libraries and header files guy lateur Coders. C/C++ 3 20 June 2021 21:16
New a500 56pin header xraynorm support.Hardware 7 31 December 2018 11:41
where are header files located in GCC ? Morbane Coders. General 0 05 January 2012 11:42

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 06:08.

Top

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