English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 22 October 2021, 19:07   #1
dlsa
Registered User
 
Join Date: Feb 2021
Location: Portugal
Posts: 40
_OpenLibrary not found

Hi,

I have a Vampire V4 running AROS. It has VBCC installed in it.
I want to use the exec call OpenLibrary to load a dynamic lib.
The code compiles, but in the link phase it cant find the code for it.

What do I have to do ?

Thanks,
Regards
dlsa is offline  
Old 22 October 2021, 19:20   #2
deimos
It's coming back!
 
deimos's Avatar
 
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
What libraries are you including in you’re linking? amiga.lib?
deimos is offline  
Old 22 October 2021, 22:44   #3
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
As Deimos said, you will usually link against amiga.lib (
-lamiga
) when calling AmigaOS functions. You also want to
#include <proto/exec.h>
, so the compiler does not have to rely on stub functions from amiga.lib but can generate inline code for the call.

Including the proto header file always makes sure that the optimal AmigaOS calls for your current compiler are being used.
phx is offline  
Old 23 October 2021, 18:20   #4
dlsa
Registered User
 
Join Date: Feb 2021
Location: Portugal
Posts: 40
I didn't mention, but I configured VBCC to use NDK_3.9 headers also.
I have set the lobosv3: to the target's lib directory that includes amiga.lib from the VBCC binary directory tree.

the .library files are in LIBS:

I placed the -lamiga switch on the command and it worked.

Thanks,
Regards
dlsa 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
Games about a Wizard [Found: Master Mage] and a Spaceship [Found: Excalibur] onlyaroth Looking for a game name ? 10 08 September 2020 22:03
[Found: Supersportic] Found a game I was trying to figure out myself. ransom1122 Looking for a game name ? 4 14 June 2019 04:07
Just Found This :) Washac Retrogaming General Discussion 6 18 February 2010 03:10
Found This Jimbo MarketPlace 5 05 September 2006 14:38
Found -> IK+ IanMac Looking for a game name ? 8 18 June 2002 15:54

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 21:52.

Top

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