Asio Standalone - Nach Compilierung Fehler



  • Guten Tag,
    ich arbeite seit längerer Zeit an einem privaten Projekt. Dieses benötigt nun den Datenaustausch zwischen einem Client und einem Server. Da ich nur die Netzwerk Bibliothek benötige, habe ich mich für ASIO Standalone und nicht für die ganze Boost Bibliothek entschieden. Leider habe ich noch nicht viel Ahnung von Asio.
    Deshalb habe ich die Bibliothek einfach mal eingebunden und eine kleine Test Class geschrieben. Doch es scheitert schon an der Ausführung wenn Asio eingebunden ist.

    Hier einmal die Fehler Liste:

    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(27): error C3646: 's_b1': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(27): error C2059: syntax error: ','
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(27): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(28): error C3646: 's_w1': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(28): error C2059: syntax error: ','
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(28): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(29): error C3646: 'S_addr': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(81): error C2146: syntax error: missing ';' before identifier 'ADDRESS_FAMILY'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(243): error C3646: 'sa_data': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(243): error C2143: syntax error: missing ',' before '['
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(243): error C2143: syntax error: missing ')' before ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(243): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(244): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(244): error C2371: 'FAR': redefinition; different basic types
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): note: see declaration of 'FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(244): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(254): error C3646: 'lpSockaddr': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(254): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(263): error C3646: 'iSockaddrLength': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(263): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(272): error C3646: 'iAddressCount': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(272): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(274): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(274): error C2371: 'FAR': redefinition; different basic types
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): note: see declaration of 'FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(274): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(290): error C3646: 'iSocketType': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(291): error C3646: 'iProtocol': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(291): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(292): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(292): error C2371: 'FAR': redefinition; different basic types
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): note: see declaration of 'FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(292): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(320): error C3646: 'ss_family': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(320): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(322): error C3646: '__ss_pad1': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(322): error C2143: syntax error: missing ',' before '['
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(322): error C2143: syntax error: missing ')' before ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(322): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(327): error C3646: '__ss_pad2': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(327): error C2143: syntax error: missing ',' before '['
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(327): error C2143: syntax error: missing ')' before ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(327): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(331): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(331): error C2371: 'FAR': redefinition; different basic types
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): note: see declaration of 'FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(331): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(338): error C3646: '__ss_pad1': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(338): error C2143: syntax error: missing ',' before '['
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(338): error C2143: syntax error: missing ')' before ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(338): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(343): error C3646: '__ss_pad2': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(343): error C2143: syntax error: missing ',' before '['
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(343): error C2143: syntax error: missing ')' before ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(343): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(347): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(347): error C2371: 'FAR': redefinition; different basic types
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): note: see declaration of 'FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(347): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(356): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(356): error C2371: 'FAR': redefinition; different basic types
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\inaddr.h(37): note: see declaration of 'FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(356): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(620): error C3646: 'Zone': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(620): error C2059: syntax error: ':'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(620): error C2334: unexpected token(s) preceding ':'; skipping apparent function body
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(623): error C3646: 'Value': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(623): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(643): error C3646: 'sin_zero': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(643): error C2143: syntax error: missing ',' before '['
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(643): error C2143: syntax error: missing ')' before ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(643): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(685): error C3646: 'len': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(685): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(686): error C3646: 'FAR': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(686): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(686): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(686): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(687): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(687): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(694): error C3646: 'name': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(694): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(695): error C3646: 'namelen': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(695): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(696): error C3646: 'lpBuffers': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(696): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(712): error C3646: 'LPWSAMSG': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(712): error C2040: '<unnamed-tag>::FAR': '<unnamed-tag>::_WSAMSG *' differs in levels of indirection from '<unnamed-tag>::_WSABUF'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(722): error C3646: 'cmsg_len': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(722): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(723): error C3646: 'cmsg_level': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(723): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(724): error C3646: 'cmsg_type': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(724): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(726): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(726): error C2371: '<unnamed-tag>::FAR': redefinition; different basic types
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(687): note: see declaration of '<unnamed-tag>::FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(726): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(919): error C3646: 'ai_canonname': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\shared\ws2def.h(919): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(122): error C2159: more than one storage class specified
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(122): error C2146: syntax error: missing ';' before identifier 'SOCKET'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(122): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(138): error C3646: 'fd_array': unknown override specifier
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(138): error C2143: syntax error: missing ',' before '['
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(138): error C2143: syntax error: missing ')' before ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(138): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(141): error C2146: syntax error: missing ';' before identifier 'FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(141): error C2146: syntax error: missing ')' before identifier 'fd'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(237): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(237): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(238): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(238): error C2086: 'char hostent::FAR': redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(237): note: see declaration of 'hostent::FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(238): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(241): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(241): error C2086: 'char hostent::FAR': redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(237): note: see declaration of 'hostent::FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(241): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(250): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(250): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(251): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(251): error C2086: 'char netent::FAR': redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(250): note: see declaration of 'netent::FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(251): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(257): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(257): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(258): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(258): error C2086: 'char servent::FAR': redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(257): note: see declaration of 'servent::FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(258): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(264): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(264): error C2086: 'char servent::FAR': redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(257): note: see declaration of 'servent::FAR'
    1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\winsock2.h(264): fatal error C1003: error count exceeds 100; stopping compilation
    

    Der C++ Code ist ganz Simpel und wird im Projekt einfach nur initialisiert:

    #pragma once
    
    #define ASIO_STANDALONE 
    #define ASIO_HAS_STD_ADDRESSOF
    #define ASIO_HAS_STD_ARRAY
    #define ASIO_HAS_CSTDINT
    #define ASIO_HAS_STD_SHARED_PTR
    #define ASIO_HAS_STD_TYPE_TRAITS
    #define _WIN32_WINNT 0x0501
    
    #include <asio.hpp>
    #include <iostream>
    
    using asio::ip::tcp;
    
    class NetworkHandler {
    public:
    	NetworkHandler();
    	~NetworkHandler();
    
    	void connection();
    private:
    	asio::io_service io_service;
    };
    

    Die CPP Datei ist vorhanden aber die Funktionen sind noch leer.
    Leider weiß ich nicht mehr wie ich weiter vorgehen soll, da die Fehler alle nicht mehr in meinen Dateien sind...
    Hoffe das Ihr vielleicht einen Tipp habt, woran das ganze liegen kann.

    Vielen dank im Voraus!



  • Die Fehlermeldungen (z.B. fehlendes Erkennen des Schlüsselworts 'override') deutet auf fehlende Angabe von C++xx (11 oder 14) hin, d.h. du kompilierst noch mit C++98.



  • Dieser Thread wurde von Moderator/in Arcoth aus dem Forum C++ (alle ISO-Standards) in das Forum Compiler- und IDE-Forum verschoben.

    Im Zweifelsfall bitte auch folgende Hinweise beachten:
    C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?

    Dieses Posting wurde automatisch erzeugt.



  • Hey,

    habe es schon mit C++14 und auch C++17 versucht. Bei beidem die gleichen Fehler...

    ich habe eher die Vermutung das etwas nicht richtig eingebunden wird, nur leider weiß ich nicht was...

    mfg Marco



  • Welchen Compiler nutzt du denn?



  • Hey,
    ich benutzte Visual Studio 2017. Jetzt gerade mit:
    ISO C++ Latest Draft Standard (/std:c++latest)



  • Hast du dir mal die Headerdateien angeschaut?
    Kannst du diese direkt kompilieren (wenn du sie selber zum Test einbindest)?

    Und welches Windows benutzt du? Windows 10?



  • Hey,
    habe noch ein bisschen rumprobiert und herausgefunden wenn ich die asio.hpp direkt ganz oben einbinde geht alles. Also liegt es wahrscheinlich an einen meiner Header Dateien oder? Obwohl es auch nichts besonderes ist, nur Klassen und 4 defines, die aber nicht in den Win Headern vorkommen. Gibt es eine Möglichkeit herauszufinden was der Fehler dahinter ist ohne jede Header auseinander zu nehmen?

    mfg Marco



  • Hey,
    kurzes Update. Ich habe herausgefunden woran es liegt.
    Ich benutzte noch die Bibliothek FreeImage. Sobald die über der asio Header eingebunden ist, kommen die Fehler. Sobald ich die entferne funktioniert alles.

    Vielen Dank für die Antworten!

    mfg Marco


Anmelden zum Antworten