Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#375 closed defect (fixed)

Wrong linker option for csc on Windows/cygwin

Reported by: Mario Domenech Goulart Owned by: felix winkelmann
Priority: major Milestone:
Component: core tools Version: 4.6.x
Keywords: csc linker Cc:
Estimated difficulty:

Description

The bin path is being given to the linker:

$ /home/mario/local/master/bin/csc hello-world.scm
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lchicken
collect2: ld returned 1 exit status

Error: shell command terminated with non-zero exit status 256: gcc hello-world.o -o hello-world -L"/home/mario/local/master/bin" -lchicken -lm 

It works if I give the linker the right lib path:

$ /home/mario/local/master/bin/csc -L/home/mario/local/master/lib hello-world.scm

$ ./hello-world.exe
hello

Change History (5)

comment:1 Changed 14 years ago by felix winkelmann

Owner: set to felix winkelmann
Status: newassigned

comment:2 Changed 14 years ago by felix winkelmann

Milestone: 4.7.04.6.0

comment:3 Changed 14 years ago by felix winkelmann

Resolution: fixed
Status: assignedclosed

Should be fixed in "master" + "experimental".

comment:4 Changed 14 years ago by Mario Domenech Goulart

Just tested it here. Works fine. Thanks.

comment:5 Changed 14 years ago by felix winkelmann

Milestone: 4.6.0

Milestone 4.6.0 deleted

Note: See TracTickets for help on using tickets.