{"id":2340,"date":"2019-03-07T17:26:23","date_gmt":"2019-03-07T16:26:23","guid":{"rendered":"https:\/\/ridgesolutions.ie\/?p=2340"},"modified":"2019-03-07T18:58:17","modified_gmt":"2019-03-07T17:58:17","slug":"visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding","status":"publish","type":"post","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/","title":{"rendered":"Visual Studio Paho MQTT Error C2238\tunexpected token(s) preceding &#8216;;&#8217;"},"content":{"rendered":"<p>If you&#8217;re receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client:<\/p>\n<pre>\r\nError C2238 unexpected token(s) preceding ';'\r\n<\/pre>\n<p>Then there is a quick fix, the problem seems to revolve around the following for DLLImport &#038; DLLExport in the Paho header files:<\/p>\n<pre>\r\n#if defined(WIN32) || defined(WIN64)\r\n  #define DLLImport __declspec(dllimport)\r\n  #define DLLExport __declspec(dllexport)\r\n#else\r\n  #define DLLImport extern\r\n  #define DLLExport __attribute__ ((visibility (\"default\")))\r\n#endif\r\n<\/pre>\n<p>The catch here is that neither WIN32 nor WIN64 will be defined as instead either _WIN32 or _WIN64 will be defined.<\/p>\n<p>So a quick fix is to define either WIN32 or WIN64 in your project&#8217;s &#8216;Preprocessor Definitions&#8217; depending on whether you are targeting x86 (32bit) or x64 (64bit).<\/p>\n<p><a href=\"https:\/\/ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/paho\/\" rel=\"attachment wp-att-2341\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ridgesolutions.ie\/wp-content\/uploads\/2019\/03\/paho.png\" alt=\"\" width=\"838\" height=\"597\" class=\"aligncenter size-full wp-image-2341\" srcset=\"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2019\/03\/paho.png 838w, https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2019\/03\/paho-300x214.png 300w, https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2019\/03\/paho-768x547.png 768w, https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2019\/03\/paho-600x427.png 600w, https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2019\/03\/paho-800x570.png 800w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/a><\/p>\n<p>Here are some of the other errors you might see when you have this problem:<\/p>\n<pre>\r\nerror C3861: 'visibility': identifier not found\r\nerror C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\nerror C2059: syntax error: 'const'\r\nerror C3861: 'visibility': identifier not found\r\nerror C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\nerror C2374: '__attribute__': redefinition; multiple initialization\r\nnote: see declaration of '__attribute__'\r\nerror C2448: '__attribute__': function-style initializer appears to be a function definition\r\n error C3646: 'data': unknown override specifier\r\n error C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\n error C3646: 'value': unknown override specifier\r\n error C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\n error C2143: syntax error: missing ';' before '*'\r\n error C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\n error C2238: unexpected token(s) preceding ';'\r\n error C3861: 'visibility': identifier not found\r\n error C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\n error C2374: '__attribute__': redefinition; multiple initialization\r\nnote: see declaration of '__attribute__'\r\n error C2448: '__attribute__': function-style initializer appears to be a function definition\r\n error C2143: syntax error: missing ',' before '*'\r\n error C3861: 'visibility': identifier not found\r\n error C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding &#8216;;&#8217; Then there is a quick fix, the problem seems to revolve around the following for DLLImport &#038; DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64) [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2340","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you&#039;re receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding &#039;;&#039; Then there is a quick fix, the problem seems to revolve around the following for DLLImport &amp; DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<meta name=\"google-site-verification\" content=\"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \u2018;\u2019\" \/>\n\t\t<meta property=\"og:description\" content=\"If you&#039;re receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding &#039;;&#039; Then there is a quick fix, the problem seems to revolve around the following for DLLImport &amp; DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-03-07T16:26:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-03-07T17:58:17+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \u2018;\u2019\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you&#039;re receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding &#039;;&#039; Then there is a quick fix, the problem seems to revolve around the following for DLLImport &amp; DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#article\",\"name\":\"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \\u2018;\\u2019\",\"headline\":\"Visual Studio Paho MQTT Error C2238\\tunexpected token(s) preceding &#8216;;&#8217;\",\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/paho.png\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#articleImage\"},\"datePublished\":\"2019-03-07T17:26:23+00:00\",\"dateModified\":\"2019-03-07T18:58:17+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#webpage\"},\"articleSection\":\"Uncategorized\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/uncategorized\\\/#listItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/uncategorized\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#listItem\",\"name\":\"Visual Studio Paho MQTT Error C2238\\tunexpected token(s) preceding &#8216;;&#8217;\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#listItem\",\"position\":3,\"name\":\"Visual Studio Paho MQTT Error C2238\\tunexpected token(s) preceding &#8216;;&#8217;\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#organizationLogo\",\"width\":400,\"height\":81},\"image\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0bcb44e82b647e8707b506ed8100bbeb7e4c9a889f1e6fdd152fce740e3ac9fa?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/\",\"name\":\"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \\u2018;\\u2019\",\"description\":\"If you're receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding ';' Then there is a quick fix, the problem seems to revolve around the following for DLLImport & DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2019\\\/03\\\/07\\\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2019-03-07T17:26:23+00:00\",\"dateModified\":\"2019-03-07T18:58:17+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \u2018;\u2019","description":"If you're receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding ';' Then there is a quick fix, the problem seems to revolve around the following for DLLImport & DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)","canonical_url":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#article","name":"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \u2018;\u2019","headline":"Visual Studio Paho MQTT Error C2238\tunexpected token(s) preceding &#8216;;&#8217;","author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/ridgesolutions.ie\/wp-content\/uploads\/2019\/03\/paho.png","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#articleImage"},"datePublished":"2019-03-07T17:26:23+00:00","dateModified":"2019-03-07T18:58:17+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#webpage"},"articleSection":"Uncategorized"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","position":1,"name":"Home","item":"https:\/\/www.ridgesolutions.ie","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/uncategorized\/#listItem","name":"Uncategorized"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/uncategorized\/#listItem","position":2,"name":"Uncategorized","item":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/uncategorized\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#listItem","name":"Visual Studio Paho MQTT Error C2238\tunexpected token(s) preceding &#8216;;&#8217;"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#listItem","position":3,"name":"Visual Studio Paho MQTT Error C2238\tunexpected token(s) preceding &#8216;;&#8217;","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/uncategorized\/#listItem","name":"Uncategorized"}}]},{"@type":"Organization","@id":"https:\/\/www.ridgesolutions.ie\/#organization","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","url":"https:\/\/www.ridgesolutions.ie\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#organizationLogo","width":400,"height":81},"image":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/admin\/#author","url":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/admin\/","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0bcb44e82b647e8707b506ed8100bbeb7e4c9a889f1e6fdd152fce740e3ac9fa?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#webpage","url":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/","name":"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \u2018;\u2019","description":"If you're receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding ';' Then there is a quick fix, the problem seems to revolve around the following for DLLImport & DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/#website"},"breadcrumb":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/admin\/#author"},"datePublished":"2019-03-07T17:26:23+00:00","dateModified":"2019-03-07T18:58:17+00:00"},{"@type":"WebSite","@id":"https:\/\/www.ridgesolutions.ie\/#website","url":"https:\/\/www.ridgesolutions.ie\/","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"}}]},"og:locale":"en_US","og:site_name":"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer","og:type":"article","og:title":"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \u2018;\u2019","og:description":"If you're receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding ';' Then there is a quick fix, the problem seems to revolve around the following for DLLImport &amp; DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)","og:url":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/","article:published_time":"2019-03-07T16:26:23+00:00","article:modified_time":"2019-03-07T17:58:17+00:00","twitter:card":"summary","twitter:title":"Visual Studio Paho MQTT Error C2238 unexpected token(s) preceding \u2018;\u2019","twitter:description":"If you're receiving errors like the following when trying to build a project in Visual Studio 2017 using the Paho C client: Error C2238 unexpected token(s) preceding ';' Then there is a quick fix, the problem seems to revolve around the following for DLLImport &amp; DLLExport in the Paho header files: #if defined(WIN32) || defined(WIN64)"},"aioseo_meta_data":{"post_id":"2340","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-09-13 21:56:36","updated":"2025-07-15 23:22:44","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\/index.php\/category\/uncategorized\/\" title=\"Uncategorized\">Uncategorized<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tVisual Studio Paho MQTT Error C2238\tunexpected token(s) preceding \u2018;\u2019\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ridgesolutions.ie"},{"label":"Uncategorized","link":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/uncategorized\/"},{"label":"Visual Studio Paho MQTT Error C2238\tunexpected token(s) preceding &#8216;;&#8217;","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/03\/07\/visual-studio-paho-mqtt-error-c2238unexpected-tokens-preceding\/"}],"_links":{"self":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/2340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/comments?post=2340"}],"version-history":[{"count":0,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/2340\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/media?parent=2340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/categories?post=2340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/tags?post=2340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}