I have installed GCC and GTK+. Its working fine, but i need to statically link GTK+ libraries with my application (it's a small application) so that there exist only one '.exe'.
相关问题
- Error building gcc 4.8.3 from source: libstdc++.so
- Aggregate static libraries
- What are the recommended GNU linker options to spe
- What is the right order of linker flags in gcc?
- Why doesn't g++ -Wconversion warn about conver
相关文章
- gcc/g++ gives me error “CreateProcess: No such fil
- Calls that precede a function's definition can
- How can I use gcc's -I command to add recursiv
- How do I know if std::map insert succeeded or fail
- How to specify gcc flags (CXXFLAGS) particularly f
- How to generate assembly code with gcc that can be
- Weakly link static library via -weak_library
- Embedding a program's source code into its bin
The correct answer would be two words:
not supported
. Really, if you want to distribute your application, being it 2 or 100000 lines, just bind a copy of GTK+ with it.It is supported with a few minor issues (like having trouble finding configuration files), but you will have to compile GTK+ yourself! (the default binaries do not include static libraries)
See this mailing-list thread for more information on this issue.
mingw-cross-env has fixes to build gtk and all related libs statically