c++ compiling error
19 Oct 2024 13:54 - 19 Oct 2024 14:02 #312607
by bkt
Replied by bkt on topic c++ compiling error
Thanks a lot but these is not necessary, I have not problem on these .... but now is well done so can add system folder cancel mine so everyone can build it on QT6 ...
Any how if eliminate halwidget from project problem remain ... so my attached project .... (finally I purge it and with some fortunes i see is not problem of code ... but only a compile problem .... not find perhaps) ..... github.com/bkt-it/Lcnc-test-qt6 .....
I find that problem become from no linking on iniaxis.o .... and these research suggest me somethings not work on linkages from .hh and .h file .... but not an expert ... or not so mutch to solve the situation ....
gc81@gc81-df:~$ nm -A /usr/lib/liblinuxcnc.a | grep emcAxisSetMinPositionLimit
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ grep -r "emcAxisSetMinPositionLimit" /usr/include/linuxcnc
/usr/include/linuxcnc/emc.hh:extern int emcAxisSetMinPositionLimit(int axis, double limit);
gc81@gc81-df:~$ nm -A /usr/lib/libemc.a | grep emcAxisSetMinPositionLimit
nm: '/usr/lib/libemc.a': No such file
gc81@gc81-df:~$ nm -A /usr/lib/libemc_nml.a | grep emcAxisSetMinPositionLimit
nm: '/usr/lib/libemc_nml.a': No such file
gc81@gc81-df:~$ nm -A /usr/lib/liblinuxcnc*.a | grep emcAxisSetMinPositionLimit
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ nm -A /usr/lib/lib*.a | grep emcAxisSetMinPositionLimit
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ nm -A /usr/lib/lib*.a | grep emcAxisSetMinPositionLimit
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ cd linuxcnc-source-dir
gc81@gc81-df:~/linuxcnc-source-dir$ grep -r "emcAxisSetMinPositionLimit"
grep: src/objects/emc/task/taskintf.o: binary file matches
grep: src/objects/emc/ini/inihal.o: binary file matches
grep: src/objects/emc/ini/iniaxis.o: binary file matches
src/emc/task/taskintf.cc:int emcAxisSetMinPositionLimit(int axis, double limit)
src/emc/nml_intf/emc.hh:extern int emcAxisSetMinPositionLimit(int axis, double limit);
src/emc/ini/iniaxis.cc: emcAxisSetMinPositionLimit(int axis, double limit);
src/emc/ini/iniaxis.cc: if (0 != emcAxisSetMinPositionLimit(axis, limit)) {
src/emc/ini/iniaxis.cc: rcs_print_error("bad return from emcAxisSetMinPositionLimit\n");
src/emc/ini/inihal.cc: if (0 != emcAxisSetMinPositionLimit(idx,NEW(axis_min_limit[idx]))) {
src/emc/ini/inihal.cc: rcs_print_error("check_ini_hal_items:bad return from emcAxisSetMinPositionLimit\n");
grep: bin/milltask: binary file matches
include/emc.hh:extern int emcAxisSetMinPositionLimit(int axis, double limit);
grep: lib/liblinuxcnc.a: binary file matches
gc81@gc81-df:~/linuxcnc-source-dir$
Thanks a lot
Any how if eliminate halwidget from project problem remain ... so my attached project .... (finally I purge it and with some fortunes i see is not problem of code ... but only a compile problem .... not find perhaps) ..... github.com/bkt-it/Lcnc-test-qt6 .....
I find that problem become from no linking on iniaxis.o .... and these research suggest me somethings not work on linkages from .hh and .h file .... but not an expert ... or not so mutch to solve the situation ....
Warning: Spoiler!
gc81@gc81-df:~$ nm -A /usr/lib/liblinuxcnc.a | grep emcAxisSetMinPositionLimit
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ grep -r "emcAxisSetMinPositionLimit" /usr/include/linuxcnc
/usr/include/linuxcnc/emc.hh:extern int emcAxisSetMinPositionLimit(int axis, double limit);
gc81@gc81-df:~$ nm -A /usr/lib/libemc.a | grep emcAxisSetMinPositionLimit
nm: '/usr/lib/libemc.a': No such file
gc81@gc81-df:~$ nm -A /usr/lib/libemc_nml.a | grep emcAxisSetMinPositionLimit
nm: '/usr/lib/libemc_nml.a': No such file
gc81@gc81-df:~$ nm -A /usr/lib/liblinuxcnc*.a | grep emcAxisSetMinPositionLimit
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ nm -A /usr/lib/lib*.a | grep emcAxisSetMinPositionLimit
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ nm -A /usr/lib/lib*.a | grep emcAxisSetMinPositionLimit
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
nm: bltVecCmd.o: no symbols
/usr/lib/liblinuxcnc.a:iniaxis.o: U _Z26emcAxisSetMinPositionLimitid
/usr/lib/liblinuxcnc.a:inihal.o: U _Z26emcAxisSetMinPositionLimitid
gc81@gc81-df:~$ cd linuxcnc-source-dir
gc81@gc81-df:~/linuxcnc-source-dir$ grep -r "emcAxisSetMinPositionLimit"
grep: src/objects/emc/task/taskintf.o: binary file matches
grep: src/objects/emc/ini/inihal.o: binary file matches
grep: src/objects/emc/ini/iniaxis.o: binary file matches
src/emc/task/taskintf.cc:int emcAxisSetMinPositionLimit(int axis, double limit)
src/emc/nml_intf/emc.hh:extern int emcAxisSetMinPositionLimit(int axis, double limit);
src/emc/ini/iniaxis.cc: emcAxisSetMinPositionLimit(int axis, double limit);
src/emc/ini/iniaxis.cc: if (0 != emcAxisSetMinPositionLimit(axis, limit)) {
src/emc/ini/iniaxis.cc: rcs_print_error("bad return from emcAxisSetMinPositionLimit\n");
src/emc/ini/inihal.cc: if (0 != emcAxisSetMinPositionLimit(idx,NEW(axis_min_limit[idx]))) {
src/emc/ini/inihal.cc: rcs_print_error("check_ini_hal_items:bad return from emcAxisSetMinPositionLimit\n");
grep: bin/milltask: binary file matches
include/emc.hh:extern int emcAxisSetMinPositionLimit(int axis, double limit);
grep: lib/liblinuxcnc.a: binary file matches
gc81@gc81-df:~/linuxcnc-source-dir$
Thanks a lot
Last edit: 19 Oct 2024 14:02 by bkt.
Please Log in or Create an account to join the conversation.
Time to create page: 0.127 seconds