Ld.exe linking error in Windows.

  • Thread starter Thread starter zevik
  • Start date Start date
  • Tags Tags
    Error Windows
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
zevik
Messages
5
Reaction score
0
I think this problem has to do with the space character inside "C:\Program Files\...":

I'm trying to use g77 on Vista.
The makefile I'm using is supplied by the developer (it's for MadGraph), but when I "make", this is what I get:
a bunch of successful "g77 -O -i4 -c <somename>.f" lines, till it comes to:
"g77 -O -i4 -o mg2 <bunch of object files>", where the make process stops with messages:

ld: cannot open C:\Program: No such file or directory
make: *** [mg2] Error 1

Is it because somehow Windows gets confused about the space character in "Program Files"?
Any idea?
 
Physics news on Phys.org
zevik said:
I think this problem has to do with the space character inside "C:\Program Files\...":

I'm not sure of the specifics of the problem, but I've had a similar problem in Linux.

To solve it I had to use quotes around any folder names which contained spaces and not the whole path:
Code:
C:\"Program Files"\...

I'm not sure whether or not this would solve your problem but it's worth a try. It's not for all problems, but it does show up every now and then.

Example:

Doesn't work
Code:
"/home/jared/temp directory/..."

Works
Code:
/home/jared/"temp directory"/...
 
A lazy and effective way to solve this would be to not put this stuff in C:\Program Files. Make a C:\Development. Or install Cygwin