English Amiga Board


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

 
 
Thread Tools
Old 06 April 2022, 17:31   #1
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Pb Visual Studio Code

Hi,

I've a pb using Visual Studio Code.
I have constants values defined in main program.
In this main program I have include for sub routine programs.
In this include I use a constant defined in main.
VSC refuses to compile arguing this value is not defined.
The error message is "illegal relocation".
I verified in output log, the include file is loaded ok.
The code assembles fine in asmone.
Strange, very strange. Any hint ?

Thanks for help.
LeCaravage is offline  
Old 06 April 2022, 21:31   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Which assembler is VSC configured to use?
Can you post the error message and the source text lines in question?
Symbol case-sensitivity problem or non-standard characters?

A relocation error with a constant usually happens when an unknown constant appears in a more complex expression than a simple addition, and the assembler tries to generate an external symbol reference for it.
phx is offline  
Old 06 April 2022, 22:39   #3
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
@phx : Please check your email box. And thanks ;-)
LeCaravage is offline  
Old 06 April 2022, 22:51   #4
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Hi,

If you mean this -> https://marketplace.visualstudio.com...amiga-assembly extension then there are a coup[le of threads here on eab.

https://eab.abime.net/showthread.php?t=92239
https://eab.abime.net/showthread.php?t=100224

There are possibly others too.
BippyM is offline  
Old 07 April 2022, 17:55   #5
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Quote:
Originally Posted by BippyM View Post
Hi,

If you mean this -> https://marketplace.visualstudio.com...amiga-assembly extension then there are a coup[le of threads here on eab.

https://eab.abime.net/showthread.php?t=92239
https://eab.abime.net/showthread.php?t=100224

There are possibly others too.
Thanks mate :-)
LeCaravage 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
Amiga Assembly extension for Visual Studio Code prb28 Coders. Asm / Hardware 342 15 December 2023 21:22
Blitz Basic 2 language support for Visual Studio Code MickGyver Coders. Blitz Basic 10 22 March 2023 08:10
Amiga GCC 8.3+gdb extension for Visual Studio Code Bartman Coders. C/C++ 117 11 March 2023 20:06
Visual Studio Code Extensions? AF2013 Coders. General 10 02 March 2022 11:46
Visual Studio Code Blitz Basic extension earok Coders. Blitz Basic 29 16 July 2019 17:59

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

Top

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