프로그램을 컴파일 할 때 문제가 있으며 그 이유를 모르겠습니다. 도서관 문제라고 생각하지만 잘 모르겠습니다. Google에서 검색했지만 문제를 해결할 수 없습니다.C에서 컴파일 문제
명령 행 :
/usr/bin/ld: neural_network.o: undefined reference to symbol '[email protected]@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [main] Error 1
편집 : 내 메이크 그것은 일종의 발견 링커가 당신을 말하고
#For the compilation
CC=clang
CPPFLAGS=`pkg-config --cflags opencv`
CFLAGS= -Wall -Wextra -Werror -std=c99 -O2
LDFLAGS=`pkg-config --libs opencv`
SRC= main.c image_handle.c image_detection.c neural_network.c
OBJ= ${SRC:.c=.o}
all: main clean
main: ${OBJ}
clean:
rm -f *~ *.o
#END
코드를 게시 할 수 있습니까? –
@onegrx : 어떻게 도움이 될까요? – Mat
내 코드가 상당히 길다. 하지만 그것은 동료의 컴퓨터에서 컴파일되므로 코드가 도움이 될 것이라고 생각하지 않습니다. 우리가 사용하기 시작할 때 오류 메시지가 나타나기 시작했습니다. –
Jeajea