Hallo zusammen
Wie setzt mal ldflags „unresolved-symbols=ignore-all“ genau, weiss das jemand von euch?
Linker error:
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/…/…/…/libxaxadevka.so: undefined reference to IowKitGetDeviceHandle' /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/../../../libxaxadevka.so: undefined reference to
IowKitCloseDevice’
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/…/…/…/libxaxadevka.so: undefined reference to IowKitWrite' /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/../../../libxaxadevka.so: undefined reference to
IowKitGetNumDevs’
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/…/…/…/libxaxadevka.so: undefined reference to IowKitRead' /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/../../../libxaxadevka.so: undefined reference to
IowKitOpenDevice’
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/…/…/…/libxaxadevka.so: undefined reference to `IowKitGetProductId’
Nun möchte ich das verhindern mit:
eatmydata – cmake -DCMAKE_BUILD_TYPE=„Release“ > /dev/null 2>&1;
eatmydata – make clean > /dev/null 2>&1;
if [ „$(dpkg --print-architecture)“ == „amd64“ ]; then
eatmydata – make -w -r -j4 CFLAGS=’-O0 -v’ LDFLAGS=’–unresolved-symbols=ignore-all’;
else
eatmydata – make -w -r -j4 CFLAGS=’-O0 -v’ LDFLAGS=’–unresolved-symbols=ignore-all’;
fi;
Klappt aber nicht.
Wie löse ich das Problem?
Danke für die Feedbacks…