Gcc: linker input file not used because link failed

When I run the make file on Linux to compile C codes, I get the following error:

gcc -Wall -fPIC -DSOLARIS -DXP_UNIX -DMCC_HTTPD -D_REENTRANT -I/opt/profile/OraAlert_test/code/include -I/usr/netscape/server4/plugins/include -I../../pwutils -I../../database/src -I../../access/src -I/data/share/capscan/include -o getEnv.o -c ../src/ gcc: ../src/: linker input file unused because linking not done 

I tried to find related questions in stackoverflow and tried the suggested solutions. However, this is impossible to solve. Any suggestions?

+6
source share
1 answer

You have a compilation command without a source file.
What should he compile?

The mistake is really misleading. It is assumed that you want to establish a connection with ../src/ , but -c says no connection should be made.

+3
source

Source: https://habr.com/ru/post/916568/


All Articles