Using 'dlopen' in statically linked applications requires at runtime the shared libraries
2018-03-08 21:22
726 查看
编译动态库时,出现以下问题
Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
这个是因为编译源文件时用到的dlopen函数依赖 libdl .
把编译链接放在 object前面可解决问题。
$(CC) -s -fPIC -lpthread -ldl -lm -Wl,-rpath
Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
这个是因为编译源文件时用到的dlopen函数依赖 libdl .
把编译链接放在 object前面可解决问题。
$(CC) -s -fPIC -lpthread -ldl -lm -Wl,-rpath
相关文章推荐
- warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries f
- warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared librar
- linux gcc编译错误:statically linked applications requires at runtime the shared libraries
- Using the ASP.Net Runtime for extending desktop applications with dynamic HTML Scripts
- Code snippet of the day : Resizing ASP.NET Datagrid Controls in Edit mode at runtime
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visua
- Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
- The process was terminated due to an internal error in the .NET Runtime at IP 7915EE73 (79140000) wi
- Using MERGE in SQL Server to insert, update and delete at the same time
- How to Pin a Cursor in the Shared Pool using DBMS_SHARED_POOL.KEEP (文档 ID 726780.1)
- Using Boost Libraries in Windows Store and Phone Applications
- Using Boost Libraries in Windows Store and Phone Applications
- When the C Run-Time (CRT) library and Microsoft Foundation Class (MFC) libraries are linked in the w
- At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /embedded-
- How to solve problem caused when the CRT library and MFC libraries are linked in the wrong order
- Maven出现以下问题:The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using ja
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- Using the DataGrid Control in Pocket PC Applications
- Why does a statically built Qt use the dynamic Visual Studio runtime libraries ? Do I need to deploy
- Information Gathering using theHarvester in Kali Linux - See more at: http://www.hacking-tutorial.co