H
Herman.Schultz
I am getting the following undefined reference linker error when I
compile my program:
FileModule.o: In function `DoFile':
/home/herman/src/FileModule.cpp:665: undefined reference to `VLC_Init'
collect2: ld returned 1 exit status
I have added libvlc.so file to my 'LIBFILES in my Makefile:
LIBFILES = QTFileLib/libQTFileLib.a \
/home/herman/bin/lib/libvlc.so
And I have added '-Llibvlc' to the LINKOPTS:
LINKOPTS += -Llibvlc
and my program compiles like this:
MyServer: $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(LIBFILES)
$(LINK) -o $@ $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(COMPILER_FLAGS) $
(LINKOPTS) $(LIBS)
Can you please tell me what am I missing?
Thank you.
compile my program:
FileModule.o: In function `DoFile':
/home/herman/src/FileModule.cpp:665: undefined reference to `VLC_Init'
collect2: ld returned 1 exit status
I have added libvlc.so file to my 'LIBFILES in my Makefile:
LIBFILES = QTFileLib/libQTFileLib.a \
/home/herman/bin/lib/libvlc.so
And I have added '-Llibvlc' to the LINKOPTS:
LINKOPTS += -Llibvlc
and my program compiles like this:
MyServer: $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(LIBFILES)
$(LINK) -o $@ $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(COMPILER_FLAGS) $
(LINKOPTS) $(LIBS)
Can you please tell me what am I missing?
Thank you.