Код: Выделить всё
fatal error: 'kernelLib.h' file not found
#include
^~~~~~~~~~~~~
1 error generated.
Кто-нибудь знает, почему? Быстрый просмотр пути других заголовков, таких как TaskLib.h, приводит к пути vxsdk/sysroot/krnl/h/public и vxsdk/sysroot/usr/h/public, но поиск kernelLib приводит к vxsdk/sysroot/krnl/h /public.
Я попробовал «сложный путь», включив полный путь к kernelLib.h:
Код: Выделить всё
#include "wrsdk-vxworks7-qemu/vxsdk/sysroot/krnl/h/public/kernelLib.h"Код: Выделить всё
$ wr-c++ hello_vxworks.cpp -static -o hello_vxworks
/home/vboxuser/Desktop/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../../compilers/llvm-16.0.0.1/LINUX64/bin/ldpentium: /tmp/wrccMGMTOE.o: in function `main':
hello_vxworks.cpp:(.text+0x2c3): undefined reference to `kernelTimeSlice'
Подробнее здесь: https://stackoverflow.com/questions/787 ... ernellib-h
Мобильная версия