Getting Started with Visual Studio 2015 Community C#

Posted By simulsys 6/23/2016 7:44:56 AM
Add to Favorites0
Author Message
simulsys
 Posted 6/23/2016 7:44:56 AM
Forum Expert

Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)

Group: Forum Members
Last Active: 7/29/2016 8:33:22 AM
Posts: 2, Visits: 10
657
Hi there!This really is a neophyte issue; I have tried downloading and building the dot_net_sdk in VS 2015 Community, to no avail as it errors thus:
Severity Code Description Project File Line Suppression State
Error C1189 #error: Macro definition of snprintf conflicts with Standard Library function declaration fanuc C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h 1927


...and I have tried to build the Fanuc C++ Adapter in VS 2013 Express, again to no avail as it says the solution is incompatible with that version?

I need to run to run MTConnect from VS 2015, can anyone help me with this version issue, please? Has the SDK been compiled for VS 2015 yet?

Truly stuck,
Simulsys
Doze
6/23/2016 8:34:21 AM by simulsys
TrakHound
 Posted 6/28/2016 3:46:22 AM
Esteemed User

Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)Esteemed User - (2,252 reputation)

Group: Awaiting Activation
Last Active: 4/13/2017 3:12:49 AM
Posts: 6, Visits: 100
In case you are still stuck, these are a few things to try:

- Check the 'Platform Toolset' option under Project > Properties > Configuration Properties > General. I believe this defaults to a toolset that is not installed. Select an installed toolset (ex. v120) and this should fix the issue of the 'incompatible with this version' error.

- I am not too sure what the real fix is for the 'snprintf' error but it can be fixed by changing each occurrence to '_snprintf'.

If you are just looking for a Fanuc Agent, check out our open source project (https://github.com/TrakHound/Fanuc-MTConnect-Agent) that uses the same adapter and the cpaagent but just adds an easy interface for managing them. It currently only has the adapters for 0id and 30i but the others can easily be added. Please let me know if you have any questions (info@trakhound.org).

Hope this helps!

-Patrick
simulsys
 Posted 7/29/2016 4:03:44 AM
Forum Expert

Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)Forum Expert - (657 reputation)

Group: Forum Members
Last Active: 7/29/2016 8:33:22 AM
Posts: 2, Visits: 10
657
Hi Patrick!

Many thanks for this valuable assist, it has kick started our programme into life again. I have installed and fired up your app on my Windows 10 laptop, and am arranging a visit to a machine shop to see if we can live-link a CNC machine. I should add I am coming to this from an Internet-of-Things direction, not a manufacturing engineering background. Consequently I am learning engineering-speak on the job.

Our intention is to install the agent onto a Raspberry Pi and have that computer deal with the data ingestion, along with upstream processing later. Eventually we are shooting for a generic solution on the Pi-s.

All the best,
Andrew.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top

Advertisements