In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge about "how to solve OpenCASCADE 6.3.0 compilation errors". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
When compiling OpenCASCADE 6.3.0 under Linux, it appears:
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../ inc -I../../../ drv/EDL -I../../../ src/EDL -I../../../ drv/MS -I../../../ src/MS -I../../../ drv/WOKAPI -I../../../ src/WOKAPI -I../../../ drv/WOKBuilder -I../../../ src/WOKBuilder -I../../../ drv/WOKDFLT -I../../../ src/WOKDFLT -I../../../ drv/WOKDeliv -I../../../ src/WOKDeliv -I../../../ drv/WOKMake -I../../../ src/WOKMake -I../../../ drv/WOKOBJS -I../../../ src/WOKOBJS -I../../../ drv/WOKOrbix -I../../../ src/WOKOrbix -I../../../ drv/WOKStep -I../../../ src/WOKStep -I../../../ drv/WOKTools -I../../../ src/WOKTools -I../../../ drv/WOKUnix -I../../../ src/WOKUnix -I../../../ drv/WOKUtils -I../../../ src/WOKUtils -I../../../ drv/WOKernel -I../../../ src/WOKernel -DNDEBUG -DNo_Exception -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -ffriend-injection -fpermissive -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -O2 -MT WOKUnix_FDescr.lo -MD -MP -MF .deps/WOKUnix_FDescr.Tpo -c ../../../ src/WOKUnix/WOKUnix_FDescr.cxx -fPIC -DPIC -o WOKUnix_FDescr.lo../../../ src/WOKUnix/WOKUnix_FDescr.cxx: In member function 'void WOKUnix_FDescr::Dup()':../../../ src/WOKUnix/WOKUnix_FDescr.cxx:249: warning: ignoring return value of 'int dup(int)', declared with attribute warn_unused_result../../../ src/WOKUnix/WOKUnix_FDescr.cxx: In member function 'Handle_TCollection_HAsciiString WOKUnix_FDescr::ReadLine()':../../../ src/WOKUnix/WOKUnix_FDescr.cxx:355: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result../../../ src/WOKUnix/WOKUnix_FDescr.cxx: In function 'FILE* _wokunix_fdopen(int)':../../../ src/WOKUnix/WOKUnix_FDescr.cxx:436: warning: deprecated conversion from string constant to 'char*'../../../ src/WOKUnix/WOKUnix_FDescr.cxx:443: warning: deprecated conversion from string constant to 'char*'../../../ src/WOKUnix/WOKUnix_FDescr.cxx:449: warning: deprecated conversion from string constant to 'char*'In function 'int open(const char*, int, ...) ',inlined from 'WOKUnix_FDescr WOKUnix_FDescr::BuildNamedPipe()' at ../../../ src/WOKUnix/WOKUnix_FDescr.cxx:205:/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 argumentsmake[3]: *** [WOKUnix_FDescr.lo] Error 1make[3]: Leaving directory `/home/anubis/src/rpm/BUILD/OpenCASCADE6.3.0/ros/adm/make/TKWOK'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/anubis/src/rpm/BUILD/OpenCASCADE6.3.0/ros/adm/make'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/anubis/src/rpm/BUILD/OpenCASCADE6.3.0/ros'make: *** [all] Error 2
Notice the error in the function body BuildNamedPipe. Find solutions on forums
Just modify the 205 behavior of ros/src/WOKUnix/WOKUnix_FDescr.cxx:
myFileChannel = open(apath.ToCString(), O_RDONLY | O_NDELAY | O_CREAT, S_IRUSR);
can
"OpenCASCADE 6.3.0 compilation error how to solve" the content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.