{"id":462350,"date":"2025-06-07T21:00:18","date_gmt":"2025-06-07T21:00:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=462350"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=462350","title":{"rendered":"<span>Netbeans 26 C++ (clang\/clangd) + build system<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e7a\/7b0\/c74\/e7a7b0c74e6cea1e3458c13e55641bea.png\" alt=\"\u043d\u0435\u0442\u0431\u0438\u043d\u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0430\" title=\"\u043d\u0435\u0442\u0431\u0438\u043d\u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0430\" width=\"1912\" height=\"1027\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/e7a\/7b0\/c74\/e7a7b0c74e6cea1e3458c13e55641bea.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e7a\/7b0\/c74\/e7a7b0c74e6cea1e3458c13e55641bea.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u043d\u0435\u0442\u0431\u0438\u043d\u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442. \u0421\u0442\u0430\u043b \u043d\u0443\u0436\u0435\u043d IDE \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439, \u0438 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0435\u0441\u0442\u044c \u041d\u0435\u0442\u0431\u0438\u043d\u0441. \u0421\u043a\u0430\u0447\u0430\u043b, \u043c\u043d\u0435 \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f &#8212; \u0443\u0434\u043e\u0431\u043d\u044b\u0439, \u043d\u043e \u0447\u0435\u0433\u043e-\u0442\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442. <\/p>\n<p>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u041d\u0435\u0442\u0431\u0438\u043d\u0441 26, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u044c\u0448\u0435 \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u0442\u043e\u0442 \u043d\u044e\u0430\u043d\u0441.<\/p>\n<p>\u0412\u043e\u043f\u0440\u043e\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c<\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 FreeBSD14.2 Netbeans26 -\u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u043a\u0430\u0447\u0430\u043d \u0432 zip, clang++20, clangd20.<\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043d\u0430 clangd20 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dd3\/b4a\/070\/dd3b4a07093452568cd2b9489d8497a9.png\" alt=\"\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u044b\u0437\u043e\u0432\u0430 clangd20\" title=\"\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u044b\u0437\u043e\u0432\u0430 clangd20\" width=\"801\" height=\"656\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/dd3\/b4a\/070\/dd3b4a07093452568cd2b9489d8497a9.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dd3\/b4a\/070\/dd3b4a07093452568cd2b9489d8497a9.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u044b\u0437\u043e\u0432\u0430 clangd20<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0431\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 ligthweight C++, \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b<\/p>\n<p>\u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 C++<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/399\/2a6\/b6c\/3992a6b6c520d47a57b74321437c178c.png\" alt=\"C\/C++ \u0433\u0430\u043b\u043e\u0447\u043a\u0430\" title=\"C\/C++ \u0433\u0430\u043b\u043e\u0447\u043a\u0430\" width=\"878\" height=\"531\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/399\/2a6\/b6c\/3992a6b6c520d47a57b74321437c178c.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/399\/2a6\/b6c\/3992a6b6c520d47a57b74321437c178c.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>C\/C++ \u0433\u0430\u043b\u043e\u0447\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0434\u0430\u043b\u0435\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c OS FreeBSD <\/p>\n<p>\u0441\u043e\u0437\u0434\u0430\u043b \u0444\u0430\u0439\u043b .clangd \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<pre><code class=\"bash\">CompileFlags:   Add: [ -I\/usr\/local\/include ]<\/code><\/pre>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 <a href=\"https:\/\/clangd.llvm.org\/config\" rel=\"noopener noreferrer nofollow\">https:\/\/clangd.llvm.org\/config<\/a><\/p>\n<p>\u0438 \u0434\u0430\u043b\u0435\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u043b\u0434 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u043f\u043e-\u0441\u0443\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/61b\/179\/1f0\/61b1791f0b1cbbcbf3e628b2a65aec6a.png\" alt=\"\u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442\" title=\"\u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442\" width=\"1292\" height=\"589\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/61b\/179\/1f0\/61b1791f0b1cbbcbf3e628b2a65aec6a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/61b\/179\/1f0\/61b1791f0b1cbbcbf3e628b2a65aec6a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"bash\">name=\"testapp\" # cmp=\"clang++20\" # flags=\"-std=c++26 \" #-O3 -ffast-math # dirsmath=\"math\" dirswin=\"commons\" dirsshader=\"shader\" dirscamera=\"camera\" dirssysbufs=\"sysbuffers\" #  files=\"main.cpp \\ $dirswin\/OpenglWindow.cpp \\ OpenglTest.cpp \\ $dirsmath\/wtm.cpp \\ $dirsshader\/shader.cpp \\ $dirscamera\/camera.cpp\"  dirObjs=\"Objs\" # poss=\"-I\/usr\/local\/include\" possl=\"-L\/usr\/local\/lib\" #main.cpp commons\/OpenglWindow.cpp OpenglTest.cpp shader\/shader.cpp math\/wtm.cpp camera\/camera.cpp link=\"-DGLEW_STATIC -ldl -lGL -lGLEW -lglfw -lm -lz -DSHM -lassimp -lpthread -lX11 -lXxf86vm -lXrandr -lXi\" # command_string=\"$cmp $flags -c  $files $poss $link;\" command_string1=\"$cmp $flags $dirObjs\/*.o -o testapp $poss $possl $link;\" #  erasefile (){     echo \"\"     echo \"delete $name\"; rm $name; rm $dirObjs\/*.o; }  compilecheck () {     echo \"\"     echo \"compilation start\"     echo \"\"     echo \"$command_string\"     echo \"\"     echo \"$command_string1\"     echo \"\"     for src in $files; do         obj=\"${src%.cpp}.o\"         obj1=$dirObjs\/\"${obj##*\/}\"         echo \"compiling $src to $obj1\"         \"$cmp\" $flags -c \"$src\" -o $obj1 $poss     done     echo \"compilation end with \"$?     echo \"\"     echo \"linking $command_string1\"     eval \"$command_string1\"     echo \"compilation end with \"$?     echo \"\"     echo \"start $name\";.\/$name     echo \"\"     echo \"application end with \"$?     echo \"\" }  if test -e $name; then     erasefile     compilecheck else     compilecheck fi <\/code><\/pre>\n<p>\u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u0443\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 &#8212; \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u043d\u0438\u043a\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u043d\u0438\u043a\u043e\u0432, \u0438 \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043f\u043e \u0435\u0433\u043e \u043b\u043e\u0433\u0438\u043a\u0435, \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u043d\u0443\u0436\u0434\u044b, \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 cmake ) \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b compile_flags.txt \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0432 \u041d\u0435\u0442\u0431\u0438\u043d\u0441<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3fb\/8b5\/e62\/3fb8b5e62baf87f4b26ce62a86d8f913.png\" alt=\"\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 compile_flags.txt\" title=\"\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 compile_flags.txt\" width=\"1292\" height=\"589\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/3fb\/8b5\/e62\/3fb8b5e62baf87f4b26ce62a86d8f913.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3fb\/8b5\/e62\/3fb8b5e62baf87f4b26ce62a86d8f913.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 compile_flags.txt<\/figcaption><\/div>\n<\/figure>\n<p>\u0444\u0430\u0439\u043b compile_flags.txt \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<pre><code class=\"bash\">-I\/usr\/local\/include -std=c++26 -Wall -O3 -ffast-math<\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u044f \u0432\u0438\u0436\u0443, \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043a\u0435 \u043d\u0435 \u0441\u043a\u0443\u0447\u043d\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u0432 \u041d\u0435\u0442\u0431\u0438\u043d\u0441\u043526.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a1f\/c4e\/b55\/a1fc4eb551171183dd34a06f7685b4ec.png\" alt=\"\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u041d\u0435\u0442\u0431\u0438\u043d\u0441\" title=\"\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u041d\u0435\u0442\u0431\u0438\u043d\u0441\" width=\"1906\" height=\"1043\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/a1f\/c4e\/b55\/a1fc4eb551171183dd34a06f7685b4ec.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a1f\/c4e\/b55\/a1fc4eb551171183dd34a06f7685b4ec.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u041d\u0435\u0442\u0431\u0438\u043d\u0441<\/figcaption><\/div>\n<\/figure>\n<p>\u0442\u0435\u043f\u0435\u0440\u044c \u041d\u0435\u0442\u0431\u0438\u043d\u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d, \u043d\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0435\u0431\u0430\u0433 \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/916534\/\"> https:\/\/habr.com\/ru\/articles\/916534\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\">\n<div><figcaption>\u043d\u0435\u0442\u0431\u0438\u043d\u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442. \u0421\u0442\u0430\u043b \u043d\u0443\u0436\u0435\u043d IDE \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439, \u0438 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0435\u0441\u0442\u044c \u041d\u0435\u0442\u0431\u0438\u043d\u0441. \u0421\u043a\u0430\u0447\u0430\u043b, \u043c\u043d\u0435 \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f &#8212; \u0443\u0434\u043e\u0431\u043d\u044b\u0439, \u043d\u043e \u0447\u0435\u0433\u043e-\u0442\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442. <\/p>\n<p>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u041d\u0435\u0442\u0431\u0438\u043d\u0441 26, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u044c\u0448\u0435 \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u0442\u043e\u0442 \u043d\u044e\u0430\u043d\u0441.<\/p>\n<p>\u0412\u043e\u043f\u0440\u043e\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c<\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 FreeBSD14.2 Netbeans26 -\u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u043a\u0430\u0447\u0430\u043d \u0432 zip, clang++20, clangd20.<\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043d\u0430 clangd20 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u044b\u0437\u043e\u0432\u0430 clangd20<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0431\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 ligthweight C++, \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b<\/p>\n<p>\u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 C++<\/p>\n<figure class=\"full-width\">\n<div><figcaption>C\/C++ \u0433\u0430\u043b\u043e\u0447\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0434\u0430\u043b\u0435\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c OS FreeBSD <\/p>\n<p>\u0441\u043e\u0437\u0434\u0430\u043b \u0444\u0430\u0439\u043b .clangd \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<pre><code class=\"bash\">CompileFlags:   Add: [ -I\/usr\/local\/include ]<\/code><\/pre>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 <a href=\"https:\/\/clangd.llvm.org\/config\" rel=\"noopener noreferrer nofollow\">https:\/\/clangd.llvm.org\/config<\/a><\/p>\n<p>\u0438 \u0434\u0430\u043b\u0435\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u043b\u0434 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u043f\u043e-\u0441\u0443\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"bash\">name=\"testapp\" # cmp=\"clang++20\" # flags=\"-std=c++26 \" #-O3 -ffast-math # dirsmath=\"math\" dirswin=\"commons\" dirsshader=\"shader\" dirscamera=\"camera\" dirssysbufs=\"sysbuffers\" #  files=\"main.cpp \\ $dirswin\/OpenglWindow.cpp \\ OpenglTest.cpp \\ $dirsmath\/wtm.cpp \\ $dirsshader\/shader.cpp \\ $dirscamera\/camera.cpp\"  dirObjs=\"Objs\" # poss=\"-I\/usr\/local\/include\" possl=\"-L\/usr\/local\/lib\" #main.cpp commons\/OpenglWindow.cpp OpenglTest.cpp shader\/shader.cpp math\/wtm.cpp camera\/camera.cpp link=\"-DGLEW_STATIC -ldl -lGL -lGLEW -lglfw -lm -lz -DSHM -lassimp -lpthread -lX11 -lXxf86vm -lXrandr -lXi\" # command_string=\"$cmp $flags -c  $files $poss $link;\" command_string1=\"$cmp $flags $dirObjs\/*.o -o testapp $poss $possl $link;\" #  erasefile (){     echo \"\"     echo \"delete $name\"; rm $name; rm $dirObjs\/*.o; }  compilecheck () {     echo \"\"     echo \"compilation start\"     echo \"\"     echo \"$command_string\"     echo \"\"     echo \"$command_string1\"     echo \"\"     for src in $files; do         obj=\"${src%.cpp}.o\"         obj1=$dirObjs\/\"${obj##*\/}\"         echo \"compiling $src to $obj1\"         \"$cmp\" $flags -c \"$src\" -o $obj1 $poss     done     echo \"compilation end with \"$?     echo \"\"     echo \"linking $command_string1\"     eval \"$command_string1\"     echo \"compilation end with \"$?     echo \"\"     echo \"start $name\";.\/$name     echo \"\"     echo \"application end with \"$?     echo \"\" }  if test -e $name; then     erasefile     compilecheck else     compilecheck fi <\/code><\/pre>\n<p>\u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u0443\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 &#8212; \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u043d\u0438\u043a\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u043d\u0438\u043a\u043e\u0432, \u0438 \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043f\u043e \u0435\u0433\u043e \u043b\u043e\u0433\u0438\u043a\u0435, \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u043d\u0443\u0436\u0434\u044b, \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 cmake ) \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b compile_flags.txt \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0432 \u041d\u0435\u0442\u0431\u0438\u043d\u0441<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 compile_flags.txt<\/figcaption><\/div>\n<\/figure>\n<p>\u0444\u0430\u0439\u043b compile_flags.txt \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<pre><code class=\"bash\">-I\/usr\/local\/include -std=c++26 -Wall -O3 -ffast-math<\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u044f \u0432\u0438\u0436\u0443, \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043a\u0435 \u043d\u0435 \u0441\u043a\u0443\u0447\u043d\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u0432 \u041d\u0435\u0442\u0431\u0438\u043d\u0441\u043526.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u041d\u0435\u0442\u0431\u0438\u043d\u0441<\/figcaption><\/div>\n<\/figure>\n<p>\u0442\u0435\u043f\u0435\u0440\u044c \u041d\u0435\u0442\u0431\u0438\u043d\u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d, \u043d\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0435\u0431\u0430\u0433 \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/916534\/\"> https:\/\/habr.com\/ru\/articles\/916534\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-462350","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/462350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=462350"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/462350\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=462350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=462350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=462350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}