Operating System - Linux
1827819 Members
2100 Online
109969 Solutions
New Discussion

Re: a new error by compiling

 
Jian Xiong
New Member

a new error by compiling

Hello,
I have changed the makefile a litte bit by plus "-lcl" at the end of the file, but it still doesnot work and shows a new error message.

=============Error message====================
cc -Aa -o fem2d fem2d.c dim_mlib.c mlib_eval_2.c mlib_eval_3.c stiff_eval.c current_eval.c locstiff_eval.c dPsi_2D.c invjak_mat2D.c jak_det2D.c loc_koord.c dimension.c para_lesen.c schreibe_matrix.c schreibe_matrix2.c Elecfield2D_tri.c ElecFlowfield2D_tri.c field2D_node.c write_msh.c -I/user/include -I/opt/mlib/include -L/opt/mlib/lib/ -lveclib -llapack -lm -lcl
fem2d.c:
dim_mlib.c:
mlib_eval_2.c:
mlib_eval_3.c:
stiff_eval.c:
current_eval.c:
locstiff_eval.c:
dPsi_2D.c:
invjak_mat2D.c:
jak_det2D.c:
loc_koord.c:
dimension.c:
para_lesen.c:
schreibe_matrix.c:
schreibe_matrix2.c:
Elecfield2D_tri.c:
ElecFlowfield2D_tri.c:
field2D_node.c:
write_msh.c:
/usr/ccs/bin/ld: Can't find library for -lcl
*** Error exit code 1

=================Error message===============
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: a new error by compiling

>ld: Can't find library for -lcl

The only way this can fail is if you have removed /usr/lib/libcl.*.
Or have illegally exported LPATH to not include /usr/lib.

>-I/user/include

(Was this suppose to be /usr/include? If so, you shouldn't specify it.)
Jian Xiong
New Member

Re: a new error by compiling

>-I/user/include

(Was this suppose to be /usr/include? If so, you shouldn't specify it.)

Hallo Dennis,
I have changed the makefile as you suggested, but the error has benn also changed to another like the following. Might you help?
Thanks a lot and best regards!

===========Error message====================
cc -Aa -o fem2d fem2d.c dim_mlib.c mlib_eval_2.c mlib_eval_3.c stiff_eval.c current_eval.c locstiff_eval.c dPsi_2D.c invjak_mat2D.c jak_det2D.c loc_koord.c dimension.c para_lesen.c schreibe_matrix.c schreibe_matrix2.c Elecfield2D_tri.c ElecFlowfield2D_tri.c field2D_node.c write_msh.c -I/usr/include -I/opt/mlib/include -L/opt/mlib/lib/ -lveclib -llapack -lm -lcl
fem2d.c:
dim_mlib.c:
mlib_eval_2.c:
mlib_eval_3.c:
stiff_eval.c:
current_eval.c:
locstiff_eval.c:
dPsi_2D.c:
invjak_mat2D.c:
jak_det2D.c:
loc_koord.c:
dimension.c:
para_lesen.c:
schreibe_matrix.c:
schreibe_matrix2.c:
Elecfield2D_tri.c:
ElecFlowfield2D_tri.c:
field2D_node.c:
write_msh.c:
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (fem2d.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Can't open
/usr/ccs/bin/ld: No such file or directory
*** Error exit code 1

Stop.
=================Error message==============



Dennis Handly
Acclaimed Contributor

Re: a new error by compiling

ld: Can't open
ld: No such file or directory

Hmm, this isn't helpful. I have no idea what the file is.

Try linking with "-Wl,-t" to trace the linker file operations.