GMP and MPFR #8136
GMP and MPFR
#8136
-
Hi, I link cgal and gmp and mpfr static libraries to my library but I still need to manually copy the libgmp-10.dll and libmpfr-4.dll .dlls for these libraries. Is there a way to compile code so that cgal and gmp and mpfr would part of one single file? If yes how? This how I currently link them and of course cgal headers: target_link_libraries(
wood_cpp_nano_ext
PUBLIC
${CMAKE_SOURCE_DIR}/src/wood_cpp/cmake/build/install/cgal/auxiliary/gmp/lib/libgmp-10.lib
${CMAKE_SOURCE_DIR}/src/wood_cpp/cmake/build/install/cgal/auxiliary/gmp/lib/libmpfr-4.lib)
...
list(APPEND include_paths "${CMAKE_SOURCE_DIR}/src/wood_cpp/cmake/build/install/cgal/auxiliary/gmp/include") |
Beta Was this translation helpful? Give feedback.
Answered by
afabri
Apr 11, 2024
Replies: 2 comments 8 replies
-
Are you certain that these lib files are actually static libraries
(containing object files)and NOT import libraries (containing symbols to
allow the linker to link to a DLL)?
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
…On Thu, 11 Apr 2024 at 02:09, Petras Vestartas ***@***.***> wrote:
Hi,
I link gmp and mpfr static libraries to my library but I still need to
manually copy the .dlls for these libraries. Is there a way to compile code
so that cgal and gmp and mpfr would part of one single library? If yes how?
This how I currently link them and of course cgal headers:
target_link_libraries(
wood_cpp_nano_ext
PUBLIC
${CMAKE_SOURCE_DIR}/src/wood_cpp/cmake/build/install/cgal/auxiliary/gmp/lib/libgmp-10.lib
${CMAKE_SOURCE_DIR}/src/wood_cpp/cmake/build/install/cgal/auxiliary/gmp/lib/libmpfr-4.lib)
...
list(APPEND include_paths "${CMAKE_SOURCE_DIR}/src/wood_cpp/cmake/build/install/cgal/auxiliary/gmp/include")
—
Reply to this email directly, view it on GitHub
<#8136>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVBNOHTFDRKPKWHIHYCAQTY4XBAZAVCNFSM6AAAAABGBI4XBWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGQ4DSMBXGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
The LGPL requires dynamic linking. And Efi is right that the .lib files are stub files. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No it is not needed.