Hello,
I have seen the other posts and I know it's sort of been addressed but I believe I have everything in order but can't seem to get past this error.
Here is what I have
Using code::blocks with GNU gcc Compiler
I have a header file (vacapi.h) and a library(libvac.a) provided by an SDK.
I have included the following in my Linker settings
pthread
X11
Xv
Xext
../Path/To/lib/libvac.a
I have also included the following in my Search Directories
../usr/include/X11
../Tools/SDKFolder/include [THIS IS WHERE the vacapi.h file is located]
../Tools/SDKFolder/lib [THIS IS WHERE the libvac.a file is located]
When I attempt to make a build I get the following.
-------------- Build: Debug in MyProject ---------------
g++ -Wall -fexceptions -Wall -g -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -c /home/billbrannan/Dev/MyProject/PktParser.cpp -o obj/Debug/PktParser.o
g++ -Wall -fexceptions -Wall -g -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -c /home/billbrannan/Dev/MyProject/OverlayEng.cpp -o obj/Debug/OverlayEng.o
g++ -Wall -fexceptions -Wall -g -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -c /home/billbrannan/Dev/MyProject/main.cpp -o obj/Debug/main.o
g++ -Wall -fexceptions -Wall -g -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -c /home/billbrannan/Dev/Common/Markup.cpp -o obj/Debug/Common/Markup.o
g++ -Wall -fexceptions -Wall -g -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -I../../../../usr/include/X11 -I../Tools/SDKFolder/include -I../Tools/SDKFolder/lib -c /home/billbrannan/Dev/Common/c_serial_port.cc -o obj/Debug/Common/c_serial_port.o
g++ -o bin/Debug/MyProject obj/Debug/PktParser.o obj/Debug/OverlayEng.o obj/Debug/main.o obj/Debug/Common/Markup.o obj/Debug/Common/c_serial_port.o -lpthread -lX11 -lXv -lXext ../Tools/SDKFolder/lib/libvac.a -lpthread -lX11 -lXv -lXext ../Tools/SDKFolder/lib/libvac.a
obj/Debug/OverlayEng.o: In function `OverlayEng::Init()':
/home/billbrannan/Dev/MyProject/OverlayEng.cpp:102: undefined reference to `InitVAC(unsigned long, _XDisplay*)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings
Any help is greatly appreciated,
Thanks,
Bill