English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 22 January 2015, 21:11   #1
arti
Registered User

 
Join Date: Jul 2008
Location: Poland
Posts: 591
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...
arti is offline  
Old 23 January 2015, 11:50   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,359
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.
thomas is offline  
Old 23 January 2015, 19:03   #3
arti
Registered User

 
Join Date: Jul 2008
Location: Poland
Posts: 591
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.
arti 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
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

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 14:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.09240 seconds with 15 queries