Home > OS >  Questions about static library
Questions about static library

Time:11-11

Under the environment of Ubuntu, qt how to invoke the compiler VS2017 static library? Compile the source code directly in the Ubuntu environment, then can call the static library?

CodePudding user response:

Call static master if binary compatibility problem, VS development often encounter vc141 version of the library and vc142 version of the library is not compatible, so the library for Windows and Linux repository must be incompatible, vc library and GCC library is incompatible, vc or GCC versions may not compatible (compatibility to pure c, c + +), so, as far as possible with the same compiler version of the library,

CodePudding user response:

reference 1st floor rayw0ng response:
call master if binary compatibility, static VS development often encounter vc141 version of the library and vc142 version of the library is not compatible, so the library for Windows and Linux repository must be incompatible, vc library and GCC library is incompatible, vc or GCC versions may also be incompatible (compatibility to pure c, c + +), so, as far as possible with the same compiler version of the library,
excuse me I wrote in VS2017 a static library, want to cut, to use in the Ubuntu qt ideas through VS2017 compile static library. A external libraries, and then direct its external libraries through qtcreator to configuration selection, the results did not compile, excuse me is there a static compilation in Ubuntu environment qt source, then configure kit suite, so as to compile? However, the problem is that even if to compile the source code, no VS2017 ubuntu environment this command line tools, compiled libraries and configuration of kit suite, whether can successful call VS2017 static library?

CodePudding user response:

Given the source code, the source code directly to join in the engineering, compiled using qtcreator is best,

Be sure to use the library, compiled using GCC into static library, the version of GCC and qtcreator GCC is consistent,
  • Related