Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » problem with opc da and FORTE_1.8_M1
problem with opc da and FORTE_1.8_M1 [message #1723710] Wed, 17 February 2016 10:39 Go to next message
investigacioncp15103 uva is currently offline investigacioncp15103 uvaFriend
Messages: 12
Registered: February 2016
Junior Member
Hello everyone:
I try use opc with FORTE_1.8_M1,to achieve this I am using this tutorial:

https://www.eclipse.org/4diac/documentation/html/communication/opc.html

the error only happens when I try compile or debug FORTE

index.php/fa/25008/0/

OPCClientToolKit.lib(OPCClient.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>OPCClientToolKit.lib(OPCClient.obj) : warning LNK4078: multiple 'ATL' sections found with different attributes (40301040)
3>OPCClientToolKit.lib(OPCGroup.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>OPCClientToolKit.lib(OPCServer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>OPCClientToolKit.lib(OPCItem.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>OPCClientToolKit.lib(OPCHost.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>OPCClientToolKit.lib(OPCItemData.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>OPCClientToolKit.lib(Transaction.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>OPCClientToolKit.lib(OPCProperties.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in thread.obj
3>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
3>opcconnectionimpl.obj : error LNK2019: unresolved external symbol "class ATL::CAtlStringMgr ATL::g_strmgr" (?g_strmgr@ATL@@3VCAtlStringMgr@1@A) referenced in function "public: __thiscall ATL::CStringT<char,class ATL::StrTraitATL<char,class ATL::ChTraitsCRT<char> > >::CStringT<char,class ATL::StrTraitATL<char,class ATL::ChTraitsCRT<char> > >(char const *)" (??0?$CStringT@DV?$StrTraitATL@DV?$ChTraitsCRT@D@ATL@@@ATL@@@ATL@@QAE@PBD@Z)
3>D:\pablo\Trabajo\FORTE_1.8_M1\FORTE_1.8_M1\bin\win32\src\Release\forte.exe : fatal error LNK1120: 1 unresolved externals

is there anyone who could help me to know how to fix the problem?

I do not know if the problem is the version if so anyone know what version works or if I could find the code compiled.

thanks
  • Attachment: forte.png
    (Size: 45.50KB, Downloaded 307 times)

[Updated on: Wed, 17 February 2016 19:47] by Moderator

Report message to a moderator

Re: problem with opc da and FORTE_1.8_M1 [message #1723815 is a reply to message #1723710] Thu, 18 February 2016 08:56 Go to previous messageGo to next message
Filip Pröstl Andren is currently offline Filip Pröstl AndrenFriend
Messages: 5
Registered: February 2016
Junior Member
Hi,

it seems to me that you are trying to link a Release version of forte with a Debug version of the OPCClientToolKit library.
Please make sure you link to the correct version.
Release <-> Release
Debug <-> Debug

Best
Filip
Re: problem with opc da and FORTE_1.8_M1 [message #1724272 is a reply to message #1723815] Mon, 22 February 2016 16:54 Go to previous messageGo to next message
investigacioncp15103 uva is currently offline investigacioncp15103 uvaFriend
Messages: 12
Registered: February 2016
Junior Member
I think the problem is not an error between debug and relace , but to make sure I make a more detailed screen capture of the problem

index.php/fa/25068/0/

you mean this in your previous post?
thank
  • Attachment: segunda.png
    (Size: 116.80KB, Downloaded 264 times)
Re: problem with opc da and FORTE_1.8_M1 [message #1724470 is a reply to message #1724272] Wed, 24 February 2016 06:19 Go to previous messageGo to next message
Filip Pröstl Andren is currently offline Filip Pröstl AndrenFriend
Messages: 5
Registered: February 2016
Junior Member
In the properties of the OPCClientToolkit project you also have to change the following setting:

"Configuration Properties -> C/C++ -> Code generation -> Runtime library" to Multi-threaded DLL (/MD)

Best
Filip
Re: problem with opc da and FORTE_1.8_M1 [message #1724507 is a reply to message #1724470] Wed, 24 February 2016 09:44 Go to previous messageGo to next message
investigacioncp15103 uva is currently offline investigacioncp15103 uvaFriend
Messages: 12
Registered: February 2016
Junior Member
the problem persists even though I did what you said Sad

index.php/fa/25105/0/

I do not know what else to do

Best
pablo

  • Attachment: post3.png
    (Size: 112.65KB, Downloaded 281 times)
Re: problem with opc da and FORTE_1.8_M1 [message #1725060 is a reply to message #1724507] Mon, 29 February 2016 12:35 Go to previous message
Filip Pröstl Andren is currently offline Filip Pröstl AndrenFriend
Messages: 5
Registered: February 2016
Junior Member
Please make sure you changed the "Runtime Library"-property of the "OPCClientToolkit"-project in the "OPC_DA_ClientSDK"-solution.
From your screenshot I think you changed the "Runtime Library"-property of the "OPCClientDemo"-project.

Best
Filip
Previous Topic:MQTT
Next Topic:New composite type
Goto Forum:
  


Current Time: Tue Feb 20 00:16:56 GMT 2018

Powered by FUDForum. Page generated in 0.01999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software