Important: Please read the Qt Code of Conduct -

Pure C library project wizard ?

  • Hello,
    wasn't there a wizard for pure C library projects in older Qt-SDk versions ?
    I'm missing : New File or Project -> Library -> C Library
    Can i simply use the C++ Library wizard for creating a pure C shared library ?

  • Lifetime Qt Champion

    Not seen that old versions, so don't know.

    Depends on what you mean by pure ?

    If you make a c++ lib, and only uses functions its C like but still might have the c++ name mangling and if you need to use from other c program, you might need to use
    extern "C" { int printf(const char *format,...); }
    to make it work if "only" a compiler for the using app.
    ( as far as i know)

Log in to reply