English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 02 February 2011, 15:38   #1
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 42
Posts: 3,085
NDK 3.1 Include file problem.

Hi,

After obtaining the NDK 3.1 include files, I've been unable to use any _LVOxxx names in my source code, such as _LVOOpenLibrary and _LVOOpenScreenTagList. In the case of the exec functions in exec_lib.i, the problem seems to be that all functions need this FUNCDEF thing, and for other libraries there's no libname_lib.i at all!

What is going on here? I want to use the NDK 3.1 include files because I only have the Devpak Os 2.x includes, and want to use proper OS 3.0+ include files.

Any help is appreciated
Thorham is offline  
Old 03 February 2011, 04:41   #2
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 2,385
Hi Thorham,

please, try to include my "ALL IN ONE" LVOs.i instead of lots of these lib_xyz_lvo.i files. I hope it works for you

Tell me if you still need LVOs for other libraries ?!! (Btw, I've renamed some of these 'private' functions)
Attached Files
File Type: rar LVOs.rar (7.1 KB, 104 views)

Last edited by PeterK; 03 February 2011 at 04:54.
PeterK is offline  
Old 03 February 2011, 10:54   #3
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,201
All the LVOs are in amiga.lib. So you just have to import the symbols you need and link your objects with amiga.lib, when generating the executable.

To make it easier you could use Macros like this:

Code:
        macro   CALLSYS
        xref    _LVO\1
        jsr     _LVO\1(a6)
        endm
And then just write
Code:
        CALLSYS OpenScreenTagList
phx is offline  
Old 03 February 2011, 19:28   #4
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 42
Posts: 3,085
Thanks guys
Quote:
Originally Posted by PeterK View Post
please, try to include my "ALL IN ONE" LVOs.i instead of lots of these lib_xyz_lvo.i files. I hope it works for you
Thanks, but I like to use the standard include files.
Quote:
Originally Posted by phx View Post
All the LVOs are in amiga.lib. So you just have to import the symbols you need and link your objects with amiga.lib, when generating the executable.
Thanks for explaining, but what the hell did they have to go and do that for? That sucks

Perhaps I'll just stick to the 2.x include files instead. Shouldn't matter much for OS 3.0, right?
Thorham is offline  
Old 04 February 2011, 21:58   #5
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 42
Posts: 3,085
Someone on AmigaOrg told me to just generate the LVOs from the C includes. Guess I'll do that instead Problem solved
Thorham 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
Programming on the A1200, NDK 3.1 ? weiju Coders. General 2 20 August 2011 23:10
Amiga NDK petemaxi Coders. General 4 23 May 2011 15:52
NDK 3.1 - Original Disks SuperIO request.Other 2 16 February 2011 11:40
NDK for OS 3.9 ramon.ortega request.Apps 8 17 March 2008 23:21
Amiga OS 3.9 BoingBags and NDK MethodGit request.Apps 3 24 February 2006 12:32

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 18:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06573 seconds with 14 queries