English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. C/C++ (http://eab.abime.net/forumdisplay.php?f=118)
-   -   Linking problem (http://eab.abime.net/showthread.php?t=76735)

arti 22 January 2015 21:11

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>

doesn't help...

thomas 23 January 2015 11:50

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.

arti 23 January 2015 19:03

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?


All times are GMT +2. The time now is 08:14.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.06294 seconds with 11 queries