Illogical compilation error

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
garryp4
Posts: 125
Joined: Mon May 21, 2007 7:18 am
Location: Loveland, CO USA

Illogical compilation error

Post by garryp4 » Sat Jan 15, 2022 9:22 pm

I keep getting a Compilation Error message that is always on line 13. First it was showing up in the commented out text header. I deleted the header then the error happen on an Include line. I can add lines to move the code up or down but the error is always on line 13. I completely uninstalled the reinstalled Swordfish but this still happens. It makes no sense.

I attached two pictures showing the error at the same place.
Attachments
sf2.png
sf2.png (134.46 KiB) Viewed 2193 times
SF1.png
SF1.png (166.37 KiB) Viewed 2193 times

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: Illogical compilation error

Post by David Barker » Sun Jan 16, 2022 8:20 am

I am unable to reproduce the error here.

Can you attach some files that exhibit this behaviour so I can test here.

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Illogical compilation error

Post by Jerry Messina » Fri Feb 11, 2022 11:44 am

Just in case someone else runs across an issue like this, it turns out that the cause was having a module name that starts with a numeric character, ie "module 1M_FRAM".

As with all identifiers, module names must start with an alpha character or underscore.

Post Reply