English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. Asm / Hardware (http://eab.abime.net/forumdisplay.php?f=112)
-   -   Macro68 errors (http://eab.abime.net/showthread.php?t=101814)

kamelito 18 April 2020 19:52

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.

StingRay 18 April 2020 20:06

Might be a case sensitivity problem. Check if you can enable case sensitive assembling.

kamelito 18 April 2020 22:46

That is also what I think, tried many options without success yet.

kamelito 18 April 2020 23:46

Case is sensitive by default the problem lie I think with the funcdef macro I use which seems to not be compatible with Macro68

Bruce Abbott 21 April 2020 02:54

Quote:

Originally Posted by kamelito (Post 1393122)
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?

kamelito 21 April 2020 09:29

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

StingRay 21 April 2020 09:53

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.

phx 21 April 2020 10:58

FUNCDEF is not defined (commented out) in the official SDK. So either your SDK was modified or Macro68 comes with modified include files.

kamelito 21 April 2020 13:56

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

phx 21 April 2020 14:59

Quote:

Originally Posted by kamelito (Post 1393761)
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.

StingRay 21 April 2020 18:40

Quote:

Originally Posted by kamelito (Post 1393761)
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.

kamelito 21 April 2020 19:06

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


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

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

Page generated in 0.05108 seconds with 11 queries