English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 01 January 2019, 20:23   #1
zeGouky
Registered User
 
Join Date: Oct 2005
Location: Edinburgh
Age: 41
Posts: 84
vasm / vlink undefined symbol

Hello,

I'm working on small pet projects where I use vasm/vlink and I'm currently trying to add Player6.1 in it.

I have a very simple makefile where it assemble two distinct asm file in 2 objects (610.6.asm and main.asm) but during the link i'm getting an undefined symbol on P61_Init (or any other function of the player).

I'm using -Fvobj for VASM and for the linking i'm using these options: "-b amigahunk -Bstatic -S -e Start -sc". if i use -M to produce the mappin I can see that the code section are correctly merged so i'm bit puzzled on why it can't resolve the symbol.

Any help would be appreciated

Thanks!
zeGouky is offline  
Old 01 January 2019, 20:59   #2
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,966
When you made VOBJ object files you can check the defined symbols in them with "vobjdump".

Did you XDEF P61_Init in 610.6.asm, so it is visible to the linking process?
phx is offline  
Old 02 January 2019, 08:49   #3
zeGouky
Registered User
 
Join Date: Oct 2005
Location: Edinburgh
Age: 41
Posts: 84
err that was it, stupid mistake -_-' thought i added it but nope ... thanks!
zeGouky 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
Using libraries with VBCC (Undefined Symbol) NoBrain2k Coders. C/C++ 7 03 July 2018 12:02
vasm "undefined symbol" is driving me nuts jotd Coders. Asm / Hardware 6 03 December 2017 20:17
Reference to undefined symbol __ldivu / __lmodu iliak Coders. C/C++ 8 25 July 2016 00:01
AsmOne: Undefined symbol copse Coders. Asm / Hardware 2 02 April 2012 01:41
Undefined symbol bsr.b init_bitmaps VoltureX Coders. General 12 13 November 2011 16:11

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 19:59.


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