Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

ICC ignoring all linker information

Fabio_A_1
Beginner
241 Views

Dear Intel forum,

  I am using the icc  17.0.1 for compile several ccp codes onto object then linker on  a executable.  Some odd thing is happening, if i use the follow lines to linker to a executable :

icc in_boundary.o in_gfmd.o in_integration.o in_print.o in_rand.o in_util.o in_forces.o in_init.o in_namelist.o in_prop.o in_singlestep.o main.o -o gfmd

icc -o gfmd in_boundary.o in_gfmd.o in_integration.o in_print.o in_rand.o in_util.o in_forces.o in_init.o in_namelist.o in_prop.o in_singlestep.o main.o

and insert any argument like -lm or even libs dont even exists like -lasdf the compiler ignores all the -l information generating several "undefined reference to"

  Please, what is wrong ? There is necessary argument ?

  Best regards.

 

 

0 Kudos
1 Reply
Yuan_C_Intel
Employee
241 Views

Hi, Fabio

Could you be more specific on what "undefined reference to" errors you got? Does those link errors also exist when you don't use -l option?

Or it only happens when some unknown -l option is used?

Thanks.

0 Kudos
Reply