22 January 2015, 21:11 | #1 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
Linking problem
How can I link SetWindowTitles and ChangeScreenBuffer only with headers.
Adding Code:
#include <proto/intuition.h> #include <inline/intuition.h> #include <clib/intuition_protos.h> |
23 January 2015, 11:50 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Which compiler? Which NDK/SDK? Which target OS? Which error message?
Ususally you have to link with -lamiga to get C stubs for library functions and with -lauto to be able to omit OpenLibrary and IntuitionBase and the like. |
23 January 2015, 19:03 | #3 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
I use gcc 4.5.4 with clib2 on linux for 68k target.
I get undefined references to these functions. I don't want to link with libamiga because it makes NetSurf start to download page at launch (?!). So I made own library with only functions needed. Adding OpenLibrary(IntuitionBase) doesn't work too. Has anybody got libamga source code or know how declaration of these 2 funcs should look like? Last edited by arti; 25 January 2015 at 11:43. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
what cable do i need for linking two amigas? | trydowave | support.Hardware | 11 | 13 July 2013 14:35 |
Linking to HOL from the forum | Ultron | HOL suggestions and feedback | 4 | 20 January 2007 04:46 |
Linking PC, Amiga and Mac. | HardStep | support.Hardware | 3 | 01 February 2006 21:03 |
|
|