Hello,
I have compiled a source C program into a re-locatable binary object file as “ReadGDflds.o”. Now I am linking the object file to library, and compile it to obtain final executive file, name as “ReadGDflds” as in the following example.
cc -DHDFSYS -o ReadGDflds -L/opt/hdf/lib -L/opt/hdfeos/lib/sun5 -lhdfeos -1Gctp -lmfhdf -ldf -ljpeg -lnsl -lz -lm ReadGDflds.o
Then I got a warning message and a fatal error message as below.
cc: Warning: option -1 passed to ld
cc: No input file specified, no output generated.
I am wondering what is happening here. Obviously, I gave an input file “ReadGDflds.o”.
By the way, I can’t understand the meaning of the warning.
Would anyone please help me out?
Thanks a lot
I have compiled a source C program into a re-locatable binary object file as “ReadGDflds.o”. Now I am linking the object file to library, and compile it to obtain final executive file, name as “ReadGDflds” as in the following example.
cc -DHDFSYS -o ReadGDflds -L/opt/hdf/lib -L/opt/hdfeos/lib/sun5 -lhdfeos -1Gctp -lmfhdf -ldf -ljpeg -lnsl -lz -lm ReadGDflds.o
Then I got a warning message and a fatal error message as below.
cc: Warning: option -1 passed to ld
cc: No input file specified, no output generated.
I am wondering what is happening here. Obviously, I gave an input file “ReadGDflds.o”.
By the way, I can’t understand the meaning of the warning.
Would anyone please help me out?
Thanks a lot