Skip to content

Instantly share code, notes, and snippets.

@twwlogin
Created December 2, 2019 20:51
Show Gist options
  • Save twwlogin/861a2739bf9919447f976456c39b90d0 to your computer and use it in GitHub Desktop.
Save twwlogin/861a2739bf9919447f976456c39b90d0 to your computer and use it in GitHub Desktop.
$ aCC -DHAVE_CONFIG_H -I. -I./src -D_REENTRANT -D_THREAD_SAFE \
-I./tweetnacl/contrib/randombytes -I./tweetnacl/src -AA -z +O2 \
+Ofltacc +Olit=all +Oentrysched +Odataprefetch +Onolimit \
-c src/stream_engine.cpp -DPIC -o src/.libs/libzmq_la-stream_engine.o
"/opt/aCC/include_std/utility", line 103: error #2144: a value of type
"const char *" cannot be used to initialize an entity of type
"char [13]"
: first (__x), second (__y) { }
^
detected during:
instantiation of "std::pair<_TypeT, _TypeU>::pair(const _TypeT &,
const _TypeU &) [with _TypeT=char [13],
_TypeU=std::string]" at line 181
instantiation of "std::pair<_TypeT, _TypeU> std::make_pair(const
_TypeT &, const _TypeU &) [with _TypeT=char [13],
_TypeU=std::string]" at line 211 of
"src/stream_engine.cpp"
1 error detected in the compilation of "src/stream_engine.cpp".
src/stream_engine.cpp:
207 if (!peer_address.empty()) {
208 // Compile metadata.
209 typedef metadata_t::dict_t properties_t;
210 properties_t properties;
211 properties.insert(std::make_pair("Peer-Address", peer_address));
212 zmq_assert (metadata == NULL);
213 metadata = new (std::nothrow) metadata_t (properties);
214 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment