22 October 2021, 19:07 | #1 |
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 |
22 October 2021, 19:20 | #2 |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
What libraries are you including in you’re linking? amiga.lib?
|
22 October 2021, 22:44 | #3 |
Natteravn
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. |
23 October 2021, 18:20 | #4 |
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 |
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 |
|
|