Die Qt C++-App stürzt beim Start ab, bevor der Code der Quellbibliothek ausgeführt wirdC++

Programme in C++. Entwicklerforum
Anonymous
 Die Qt C++-App stürzt beim Start ab, bevor der Code der Quellbibliothek ausgeführt wird

Post by Anonymous »

In meinem Qt C++-Projekt wollte ich die Faker++-Bibliothek (https://github.com/cieslarmichal/faker-cxx) verwenden.
Ich habe sie auf die Standardmethode integriert, indem ich CMakeLists.txt bearbeitet und den Quellcodeordner hinzugefügt habe.

Code: Select all

set(BUILD_TESTING OFF)
add_subdirectory(externals/faker-cxx)
target_link_libraries(MyApp faker-cxx)
Die Faker++-Bibliothek ist eine Sammlung von Funktionen in verschiedenen Namespaces:

Code: Select all

const auto id = faker::string::uuidV4();
const auto email = faker::internet::email();
const auto password = faker::internet::password();
const auto city = faker::location::city();
const auto streetAddress = faker::location::streetAddress();
const auto bornDate = faker::date::birthdateByYear(1970, 2000);
Wenn ich eine dieser Funktionen aufrufe, stürzt die Anwendung beim Start ab, BEVOR eine davon tatsächlich ausgeführt wird.
Eine einfache Konsolenanwendung ohne Qt-Abhängigkeiten funktioniert einwandfrei.
Compiler: MinGW 13
Ich bin neu in C++ und Qt. Was könnte das Problem sein?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post