-
hi, now Im thying
cmake_minimum_required(VERSION 3.1)
project(iot CXX)
include(GenerateExportHeader)
file(GLOB SRC_FILES
"*.cpp"
"../../utils/CommandLineUtils.cpp"
"../../utils/CommandLineUtils.h"
)
add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
generate_export_header(${PROJECT_NAME})
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 14)
#set warnings
if (MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX /wd4068)
else ()
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror)
endif ()
find_package(aws-crt-cpp REQUIRED)
target_link_libraries(${PROJECT_NAME} AWS::aws-crt-cpp) project create ok, open VS2019 problems, c# gui loadlibrary error: Message=No compatible export signature was found in DLL how to, Executable sample pubsub run ok. thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I'm not exactly sure what you are trying to do. Are you trying to cross compile this? Can you include more of the error logs that you are getting? |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
hi jmlix,
I don't remember anymore.
I had to stop the project from adding the MQTT sdk in a DLL I use,
and go back and use M2Mqtt.
Today I build a c++ DLL that loads a DLL with M2Mqtt to solve my problem.
SDK c++ to add in c++ application is easy, to use in a c++ library I couldn't.
thanks,
Carlos.