Гость » 09 мар 2024, 13:54
Последнее сообщение Гость «
Гость »
I'm having an issue working with Leptonica version 1.80.0 on a Red Hat 9 machine. I'm using the function pixDeskewGeneral(...) to deskew some images before being processed by Tesseract for OCR text extraction.
Гость » 09 мар 2024, 13:31
Последнее сообщение Гость «
Гость »
I have a templated struct and I want to speed compilation times by separating declaration and implementation, using explicit template declaration (I'm using Kokkos 4.1, with Cuda backend, GCC 11.3 and Cuda 11.8).
Гость » 09 мар 2024, 13:07
Последнее сообщение Гость «
Гость »
Here is my code.
#include struct Node { int x; }; Node f(int A, int B) { if (A 0) return {0}; return {C / D + (C % D != 0)}; } int main() { int n; scanf( %d , &n); f(1, 1); Node t = g(-1, n); printf( %d\n , t.x); } Then I use: g++-13 tmp.cpp -o...
Гость » 09 мар 2024, 13:01
Последнее сообщение Гость «
Гость »
I want to place a function void loadableSW (void) at a specific location: 0x3FF802 . In another function residentMain() I will jump to this location using pointer to function. How to declare function loadableSW to accomplish this. I have attached...
Гость » 09 мар 2024, 13:00
Последнее сообщение Гость «
Гость »
I have two classes a Parent class and a Child class (inheriting from the Parent class) I would like to know if it is possible to cast/transform a Child** to a Parent** with reinterpret_cast or something else? Or such thing is not possible
Гость » 09 мар 2024, 12:45
Последнее сообщение Гость «
Гость »
I wanted to check whether a g++ compiler-flag exists that warns me about nullpointer-dereferencing. When compiling this code with g++ (GCC) 13.1.1 and these compiler flags: -Wnull-dereference , -Wnonnull , still nothing happens. No warning, no...
Гость » 09 мар 2024, 12:22
Последнее сообщение Гость «
Гость »
i write a shared lib,named libTest.dll(windows) and libTest.so(ubuntu),when a executable program link the shared lib.how did i write the cmakelists.txt,just give the lib name 'Test' ,then it can automatically link to the correct shared lib like...
Гость » 09 мар 2024, 10:58
Последнее сообщение Гость «
Гость »
I am creating wrapper functions, that modify existing functions (targets). The targets are determined at runtime as pointers without type information ( void* ). Each of them has different parameters and return type. The wrapped functions are called...
Гость » 09 мар 2024, 10:35
Последнее сообщение Гость «
Гость »
một dãy số ban đầu rỗng. Người ta lần lượt Q thao tác, ở thao tác thứ i người ta chén thêm bi số ai vào cuối dãy số. Sau khi thực hiên Q thao tác, hãy cho biết số nhỏ thứ k trong dãy có giá trị bao nhiêu. điều kiện: 1≤Q≤10⁵, 1≤ai, bi≤10⁹, 1≤k≤ b1 +...
Гость » 09 мар 2024, 10:14
Последнее сообщение Гость «
Гость »
I was told to use the singleton pattern instead of having global objects, which have the “static” storage duration, to avoid the static initialization order fiasco. But now that I have C++20 modules, should I?
Static initialization order fiasco...
Гость » 09 мар 2024, 10:00
Последнее сообщение Гость «
Гость »
I have two applications, one server and other client, both written in C++ and Qt, but both of them also uses a C library that uses C socket methods to perform a socket communication between them (and this all in Linux).
Гость » 09 мар 2024, 08:54
Последнее сообщение Гость «
Гость »
I'm trying to figure out how it is possible to receive an OpenCV image from a Python in C++. I'm trying to send a callback function, from C++ to my Python module, and then when I call a specific python method in my C++ app, I can access the needed...
Гость » 09 мар 2024, 08:52
Последнее сообщение Гость «
Гость »
I am trying to reduce the run-time of this code as much as possible. I have never done parallelization in C++. I would appreciate your help in figuring this out. I can run the code on VSCode or CodeLite on a 64-bit Windows machine.
Гость » 09 мар 2024, 08:16
Последнее сообщение Гость «
Гость »
I have a spinbox with a default 0 in it. After I click on the spinbox the cursor needs to move after the 0 inside the box. The function bellow is not producing any suitable result.
Гость » 09 мар 2024, 08:13
Последнее сообщение Гость «
Гость »
I attempted to run my MakeFile generated with cmake but ran into the following error:
error: no member named 'par' in namespace 'std::execution' std::execution::par, ~~~~~~~~~~~~~~~~^ 2 warnings and 1 error generated. make : *** Error 1 make :...
Вы можете начинать темы Вы можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы можете добавлять вложения