View previous topic :: View next topic |
Author |
Message |
DanRRight
Joined: 10 Mar 2008 Posts: 2820 Location: South Pole, Antarctica
|
Posted: Tue Jan 22, 2013 11:49 pm Post subject: Resource file compilation error |
|
|
When you make a mistake in a resource file the linker gives you very vague and unusual error message
Code: | $ ÿ
[SLINK/Win32 v1.45 Copyright (c) Silverfrost Ltd. 1995-2012]
*** Don't understand: ÿ
|
Now i know where to search for the problem but ones it took me a lot of time to get what this means and where problem happened.
Another issue is that using SRC to compile the resource file and then link it to the project OR just adding keyword RESOURCES at the end of Fortran text gave me different results, specifically i was unable to load some files using first method and all went fine with the second one. Are these two methods linking resources different? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Wed Jan 23, 2013 8:37 am Post subject: |
|
|
When FTN95 finds "RESOURCES" it simply copies the lines to a temporary file which it then sends to SRC. So the error reports should be the same.
One thing that you should watch out for: Resource files produced by Visual Studio might be UNICODE files and these cannot be processed by SRC. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2820 Location: South Pole, Antarctica
|
Posted: Wed Jan 23, 2013 8:51 pm Post subject: |
|
|
Thanks, will try to corner the problem some time taking smaller demo code with this specific RC file which gave me always black screen when i used import_image@. I do not have VS on my computer. Please also make more verbose diagnostics when SDBG links corrupt resource object file with just this one unicode letter above! |
|
Back to top |
|
|
|