Comments (7)
你图里打印的External | mqtt_client_new,不就是mqtt的c接口吗
from libhv.
External 表示在这个静态库里只有申明,没有实现,连接的时候会报找不到实现
from libhv.
windows下链接libhv静态库,需要加HV_STATICLIB预编译宏,这个你加了吗
from libhv.
是指我在其它项目里用静态库连接的时候,也要加HV_STATICLIB宏,而不是在libhv编译静态库的时候?libhv的cmakelists我看是有此定义的:
if(BUILD_STATIC)
add_library(hv_static STATIC ${LIBHV_SRCS})
target_compile_definitions(hv_static PUBLIC HV_STATICLIB)
target_include_directories(hv_static PRIVATE ${LIBHV_SRCDIRS}
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
target_link_libraries(hv_static ${LIBS})
install(TARGETS hv_static
EXPORT libhvConfig
ARCHIVE DESTINATION lib)
add_custom_target(libhv_static DEPENDS hv_static)
endif()
from libhv.
是的,使用的项目里需要加,见FAQ:https://github.com/ithewei/libhv/wiki/%E4%B8%AD%E6%96%87FAQ#qwindows%E4%B8%8B%E9%93%BE%E6%8E%A5%E4%B8%8D%E8%BF%87
from libhv.
今天确认后给你回复,谢谢
from libhv.
ok了,谢谢
from libhv.
Related Issues (20)
- make the function more applicable HOT 1
- Error when Linking WebSocket Client Example with libhv_static Library HOT 1
- iocp.c文件iowatcher_poll_events函数中结构体强转问题 HOT 1
- http post请求 HOT 3
- Why not http/websocket client callback error when it fails? HOT 1
- TCP服务器无法获取包的正确长度 HOT 1
- 请问有无进程间的通信功能? HOT 1
- Consider Supporting Bazel Build System HOT 2
- Regarding whether the channel encapsulates sendmsg() and recvmsg() functions HOT 3
- hv crash when use as a library in linux HOT 9
- 支持mqtt server吗? HOT 2
- ld.lld: error: undefined symbol: http_client_send_async(http_client_s*, std::__1::shared_ptr<HttpRequest>, std::__1::function<void (std::__1::shared_ptr<HttpResponse> const&)>) HOT 2
- HTTP返回中默认header的Server字段会填上httpd/1.3.2(当前hv版本号), 会被安全扫描软件误认为是apache http server报错 HOT 2
- UE5 LibHv Plugin Release
- 关于Windows下中文路径的问题 HOT 1
- Question about async dns HOT 2
- libhv的GetCookie问题 HOT 1
- Setting a Custom 404 Page HOT 4
- does bin/httpd reverse proxy mode follow location HOT 3
- Buffer overflow when using reverse proxy via HttpService::Proxy HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libhv.