English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 18 April 2020, 19:52   #1
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,177
Macro68 errors

Hi
I’ve a simple code that display an IFF file. It work fine under Asmone/pro and Devpac. I tried to assemble it using Macro68 and during the include processing (CBM header) I have the error “Duplicate definition of symbol/label” I read the doc but am unable to find the right flag/switch any idea?

If someone do have the manual in pdf etc feel free to share, thx.
kamelito is offline  
Old 18 April 2020, 20:06   #2
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,542
Might be a case sensitivity problem. Check if you can enable case sensitive assembling.
StingRay is offline  
Old 18 April 2020, 22:46   #3
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,177
That is also what I think, tried many options without success yet.
kamelito is offline  
Old 18 April 2020, 23:46   #4
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,177
Case is sensitive by default the problem lie I think with the funcdef macro I use which seems to not be compatible with Macro68
kamelito is offline  
Old 21 April 2020, 02:54   #5
Bruce Abbott
Registered User

Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 358
Quote:
Originally Posted by kamelito View Post
Case is sensitive by default the problem lie I think with the funcdef macro I use which seems to not be compatible with Macro68
Can you show us the offending code?
Bruce Abbott is offline  
Old 21 April 2020, 09:29   #6
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,177
Before the code was simple images on this site I type everything and submit it to be online properly.
Here it is
http://obligement.free.fr/articles/a...images_iff.php
kamelito is offline  
Old 21 April 2020, 09:53   #7
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,542
The FUNCDEF macro is defined in exec/libraries.i hence you get the "Duplicate definition of symbol/label". Simply removing the FUNCDEF macro from the main source should fix it.
StingRay is offline  
Old 21 April 2020, 10:58   #8
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,717
FUNCDEF is not defined (commented out) in the official SDK. So either your SDK was modified or Macro68 comes with modified include files.
phx is offline  
Old 21 April 2020, 13:56   #9
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,177
I’ll check after work but as PHX says I don’t think that FUNCDEF was part of the NDK, if so I wonder why CBM used it in their _lib.i includes without removing the comments in libraries.i
kamelito is offline  
Old 21 April 2020, 14:59   #10
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,717
Quote:
Originally Posted by kamelito View Post
I wonder why CBM used it in their _lib.i includes without removing the comments in libraries.i
Probably the intention was that you define a more optimised version of FUNCDEF, using features of your actual assembler, e.g. with rsreset/rs. Although I doubt that this is so important, performance-wise, for a few definitions in exec_lib.i, so Commodore's decision remains a mystery. Especially as similar macros, like LIBDEF, were not commented out.
phx is offline  
Old 21 April 2020, 18:40   #11
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,542
Quote:
Originally Posted by kamelito View Post
I’ll check after work but as PHX says I don’t think that FUNCDEF was part of the NDK, if so I wonder why CBM used it in their _lib.i includes without removing the comments in libraries.i

Commenting out the FUNCDEF macro in the main source is easily done, you'll see quickly if that fixes the problem or not.
StingRay is offline  
Old 21 April 2020, 19:06   #12
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,177
I removed the funcdef macro altogether to see if I'll get duplicate error message, they're still present. (plus unknown funcdef opcode).
I tried many assemblers package, Maxon ASM seems nice (but it's in German language) but Macro68 is killing me.
I think I'll stick to Asm/One/Pro and Devapac, Vasm under Windows, and PhxAss that one is for Meynaf.

_LVOOpenIntuition EQU -30
ERROR *** devtools:HiSoft_Devpac/Include/intuition/intuition_lib.i *** Pass 1 *** Line 4 -- Duplicate definition of symbol/label

_LVOIntuition EQU -36
ERROR *** devtools:HiSoft_Devpac/Include/intuition/intuition_lib.i *** Pass 1 *** Line 5 -- Duplicate definition of symbol/label

_LVOAddGadget EQU -42
ERROR *** devtools:HiSoft_Devpac/Include/intuition/intuition_lib.i *** Pass 1 *** Line 6 -- Duplicate definition of symbol/label

_LVOClearDMRequest EQU -48
ERROR *** devtools:HiSoft_Devpac/Include/intuition/intuition_lib.i *** Pass 1 *** Line 7 -- Duplicate definition of symbol/label

_LVOClearMenuStrip EQU -54
ERROR *** devtools:HiSoft_Devpac/Include/intuition/intuition_lib.i *** Pass 1 *** Line 8 -- Duplicate definition of symbol/label
kamelito 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
Macro68 version 3.175 kamelito request.Apps 0 20 October 2019 17:32
MACRO68 & include files Shadowfire request.Apps 10 21 October 2015 00:03
WHDLoad errors majkielek support.WinUAE 2 04 September 2008 21:09
Errors with dat killergorilla project.SPS (was CAPS) 6 31 March 2005 13:30
REQ:Macro68 version 3.165 or Later... A.I request.Apps 0 13 October 2004 10:50

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


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