#Lattice link problem
8 messages in this thread
I am having a bit of a problem with the Lattice compiler that I hope
someone can help me with. When I compile a program (even a simple 'hello
world' type thing) I get this error:
Error 605: Cannot open with file '"HelloWorld.lnk'
This is suring the link phase. I think the trouble is that stray double
quote, but am not sure. Has anyone experienced this? It MUST be some little
thing I'm doing wrong, but for the life of me I can't see it.
Thanks,
Allen
Regards,
Allen
Allen,
I haven't seen that particular problem (although I have seen more than
my share of problems with Lattice :-). It might help if you could post the
command line that you are using to do the compile and link.
…BobR
White Wolf Productions
Hi Bob,
I've been trying to use:
'lc -L HelloWorld'
No quotes. The File is stored in ram: and called HelloWorld.c
Regards,
Allen
Allen,
The command line looks simple enough (and correct). The only thought I
have is that things may be getting screwed up because the name of Ram: is
"Ram Disk:", and some programs have difficulties in processing
command-lines where filenames contain spaces. What I've done to get around
this problem is zap the file "ramdrive.device" in the devs: directory,
changing the string "Ram Disk" to "Ram_Disk". Note that this is a kludge,
but it has made a difference for a number of programs. If what you're
trying to do works when you're working on a "real" disk, but not on Ram:,
then this is probably the problem, and my kludge would help. However,
remember to do the zapping on a BACKUP of the file. (Cover thy backside
<grin>).
Hope this helps…
…BobR
White Wolf Productions
Bob,
Nope…Lattice (SAS/C) works fine in RAM:, I just tested it again
to make sure.
Don
Allen,
Create a file called "hello.c" (NO quotes) that contains the
following 6 lines exactly:
#include <stdio.h>
main()
{
printf("Hello World");
}
once you've saved it, type in the CLI, following exactly:
lc -L hello
let me know what happens.
Don
Don,
That's exactly what I've been doing. Actually, the hello world is just an
example program (to show that I can't even get the beginner stuff to
compile! 🙂
Thanks for any help…
Regards,
Allen
Allen,
I can only say that it works fine for me. Make sure what you're
typing in is exactly what I showed. Check the quotes in the printf
statement.
If it still doesn't work, you've got a corrupt file somewhere in
the system. Try a reload of Lattice and if htat doesn't work, get them to
replace the disks for you.
Don