-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building with MinGW on windows #20
Comments
Hi @celsium Thanks for the report. I'll have a look at this and update the CMakelists as needed. Cheers, |
Hi Dan, can you also take a look on this error. I created handle from 2 strings (eventHubPath is empty string): Error: Time:Tue Oct 17 16:47:00 2017 File:C:\Users\Anton\Downloads\bacnet-stack-master\ports\win32\VS2017\azure-event-hubs-c\azure-uamqp-c\src\saslclientio.c Func:_saslclientio_send Line:1131 send called while not open What is the reason of this issue? |
Hi @celsium, Sorry for the delay. I'm looking now at your other question on why you would not be able to send. Cheers, |
Hi @celsium You need to have an eventhub name specified. Is there any reason why you are not passing an eventhubname in the _Create? Hope this helps, |
Hi Dan!
Thank you for reply, yes, its working now with event hub path.
Regards, Anton Kabatskiy.
2017-10-21 7:10 GMT+03:00 Dan Cristoloveanu <notifications@github.com>:
… Hi @celsium <https://github.com/celsium>
You need to have an eventhub name specified.
I quickly ran through the send sample myself now and seems to work as
expected when an eventhubname is specified.
[image: Uploading image.png…]
Is there any reason why you are not passing an eventhubname in the _Create?
Hope this helps,
/Dan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHv2CF_OrQmd61Zw_YyjigviBDq79uELks5suW7FgaJpZM4P4joS>
.
|
Hi guys!
Building with MinGW on windows will fail with error, because of this code in azure-uamqp-c\CMakeLists.txt:
IF(WIN32)
#windows needs this define
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
# Make warning as error
add_definitions(/WX)
ELSE()
# Make warning as error
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
ENDIF(WIN32)
And this code in azure-c-shared-utility\CMakeLists.txt:
IF(WIN32)
#windows needs this define
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
IF(WINCE)
# Don't treat warning as errors for WEC 2013. WEC 2013 uses older compiler version
add_definitions(/WX-)
ELSE()
# Make warning as error
add_definitions(/WX)
ENDIF()
ELSE()
# Make warning as error
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
ENDIF(WIN32)
In both cases you add "/WX" flag to gcc call which is not defined there. I guess there should be one more check for MinGW compiler.
The text was updated successfully, but these errors were encountered: