Hello,
I am a new user of openFramework and I am not so experimented in c++…
I have an already existing c++ application in which I want to be able to communicate with an Arduino Due through Firmata. Just to be clear, I can’t create an openFramework project, and readapt my program for oF…
I added as additionnal include directories the directories where the headers of “ofArduino.h”, “ofConstants.h”, “ofEvents.h”… are placed. Also I added as additionnal dependency the openframeworksLib_debug.lib and all othe required .lib files. After I tried to instantiate my arduino class. But I have a lot of linkers problem.
Did I miss something?
EDIT
The test code that I use for initiallization:
#include "pch.h"
#include <iostream>
using namespace std;
ofArduino ard;
int main()
{
ard.connect("COM11", 57600);
cout << "END!\n";
}
in pch.h I have just:
#ifndef PCH_H
#define PCH_H
#include "ofArduino.h"
#endif //PCH_H
And as output I get tons of linker problems, basically like:
1>Test7.cpp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>openframeworksLib_debug.lib(ofUtils.obj) : error LNK2019: unresolved external symbol _uriParseUriA referenced in function __catch$?ofUTF8Length@@YAIABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z$0
I think I correctly indicated the linker so I don’t get what happens here. Could you help me with that?
Thank you in advance.