English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 07 June 2020, 11:36   #1
Mojost
Registered User
 
Join Date: Feb 2020
Location: Wales
Posts: 3
Help setting up vbcc

Hi

I was hoping someone could point me in the right direction in setting up vbcc.


I have been attempting to setup vbcc on my A4000 running 3.4.1. I've installed the vbcc binaries, 68k targets and ndk3.9. I can compile and run a standard "hello world" without issue. However if i try to use intuition to open a screen i get the following errors.

Error 21: t_5_0.o (CODE+0x54): Reference to undefined symbol _OpenLibrary.
t_5_0.o: In "l6":
Error 21: t_5_0.o (CODE+0x7c): Reference to undefined symbol _IntuitionBase.
vlink failed returncode 20
vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib -mrel vlibos3:startup.o "T:t_5_0.o" -s -Rshort -Lvlibos3: -lvc -o test failed


It's 15 years since i did any C programming so I'm a little rusty


Many thanks
Mojost is offline  
Old 07 June 2020, 11:45   #2
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
Missing -lamiga
Hedeon is offline  
Old 07 June 2020, 21:26   #3
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
There is more.

Quote:
Originally Posted by Mojost View Post
Error 21: t_5_0.o (CODE+0x54): Reference to undefined symbol _OpenLibrary.
Either link with -lamiga, as Hedeon pointed out, or include
<proto/exec.h>
for faster inline system calls. But it doesn't hurt to link with amiga.lib in any case.

Quote:
t_5_0.o: In "l6":
Error 21: t_5_0.o (CODE+0x7c): Reference to undefined symbol _IntuitionBase.
Either link with -lauto, which would also automatically open the library for you, or define IntuitionBase as
struct IntuitionBase *IntuitionBase
.
phx is offline  
Old 08 June 2020, 16:52   #4
Mojost
Registered User
 
Join Date: Feb 2020
Location: Wales
Posts: 3
Great!, thanks for the info.
Mojost 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
VBCC and ARM Hedeon Coders. C/C++ 2 30 December 2019 00:59
VBCC - What's going on here? deimos Coders. C/C++ 69 28 July 2018 16:14
vbcc 0.9f released phx News 49 01 April 2018 11:33
vbcc 0.9d phx News 43 13 July 2015 19:41
vbcc: no startup aragon Coders. C/C++ 2 16 February 2014 14:52

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 11:34.

Top

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